summaryrefslogtreecommitdiff
path: root/buildlive
diff options
context:
space:
mode:
Diffstat (limited to 'buildlive')
-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