summaryrefslogtreecommitdiff
path: root/util/unmount_filesystems.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/unmount_filesystems.sh')
-rw-r--r--util/unmount_filesystems.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/unmount_filesystems.sh b/util/unmount_filesystems.sh
index 6ccce3b..0980e5a 100644
--- a/util/unmount_filesystems.sh
+++ b/util/unmount_filesystems.sh
@@ -23,7 +23,9 @@ root_partition_path=$2
cd /root
-umount $boot_partition_path
+if [ "$boot_partition_path" != "/dev/null" ];then
+ umount $boot_partition_path
+fi
umount $root_partition_path
echo "Unmounted filesystems - OK"