From 71417ab29ce8d47f20375aae656ff0b0f530a238 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 30 Jun 2020 22:39:35 +0800 Subject: skip the ROOTPATH umount if BOOTPATH is the same as ROOTPATH --- buildlive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3