From: kokkiemouse Date: Sat, 12 Sep 2020 06:26:51 +0000 (+0900) Subject: fixed sfs X-Git-Tag: 2020-11-20-a~188 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=95698cb4d69ea01df773aac4b4fd7e4874f1eee9;p=alterlinux%2FLFBS.git fixed sfs Signed-off-by: kokkiemouse --- diff --git a/lfbs b/lfbs index f4aba33..88798f2 100755 --- a/lfbs +++ b/lfbs @@ -94,8 +94,12 @@ umount_chroot () { local mount for mount in $(mount | awk '{print $3}' | grep "$(realpath "${work_dir}")" | sort -r); do - _msg_info "Unmounting ${mount}" - umount -fl "${mount}" + if [[ "${mount}" == "${work_dir}/airootfs" ]]; then + : + else + _msg_info "Unmounting ${mount}" + umount -fl "${mount}" + fi done } @@ -128,7 +132,11 @@ run_cmd() { chroot "${work_dir}/airootfs" "${@}" for mount in $(mount | awk '{print $3}' | grep "$(realpath "${work_dir}")" | sort -r); do - umount -fl "${mount}" + if [[ "${mount}" == "${work_dir}/airootfs" ]]; then + : + else + umount -fl "${mount}" + fi done } @@ -446,6 +454,7 @@ if [[ -n "${1}" ]]; then fi fi +umount -f "${work_dir}/airootfs" prepare_build run_once make_basefs