summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-06-30 22:39:35 +0800
committerIru Cai <mytbk920423@gmail.com>2020-06-30 22:42:41 +0800
commit71417ab29ce8d47f20375aae656ff0b0f530a238 (patch)
treede2cf1875b4626892c84555c34a9acf0c29c2511
parent56dce308f2f21a4c20e040cb4342832a4935ed8c (diff)
downloadliveusb-builder-71417ab29ce8d47f20375aae656ff0b0f530a238.tar.xz
skip the ROOTPATH umount if BOOTPATH is the same as ROOTPATH
-rwxr-xr-xbuildlive2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlive b/buildlive
index 30ac729..f7d5862 100755
--- a/buildlive
+++ b/buildlive
@@ -227,7 +227,7 @@ if [ "$UMOUNT_BOOT" == 1 ]; then
msg 'Trying to umount the boot mountpoint, you may need to wait for sync() to complete.'
udevil umount "$BOOTPATH"
fi
-if [ "$UMOUNT_ROOT" == 1 ]; then
+if [ "$UMOUNT_ROOT" == 1 -a "$ROOTPATH" != "$BOOTPATH" ]; then
msg 'Trying to umount the root mountpoint, you may need to wait for sync() to complete.'
udevil umount "$ROOTPATH"
fi