From 2f6a6e43c47a345ca72028177cea92e7307cebff Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 12 Jan 2020 17:40:15 +0100 Subject: First version of BIOS boot. --- util/unmount_filesystems.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/unmount_filesystems.sh') 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" -- cgit v1.2.3-70-g09d2