From c9b69412948af77851454653cb6644c1c0de3e1a Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Thu, 8 Jul 2021 22:48:19 +0900 Subject: [PATCH] Revert "Fix the unmount fails" This reverts commit e5417d78a3aa7c596ef4075e1b0574838ae2d828. --- script/lib/common.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script/lib/common.sh b/script/lib/common.sh index b5fd1b4..ec076b5 100644 --- a/script/lib/common.sh +++ b/script/lib/common.sh @@ -296,9 +296,7 @@ function post_install() { # And mount other directories echo "...Mounting all other dirs." - mount --make-slave "${TARGETMOUNTPOINT}" - mount --rbind /etc/resolv.conf "${TARGETMOUNTPOINT}"/resolv.conf -# for n in proc sys dev tmp etc/resolv.conf; do mount --rbind "/$n" "${TARGETMOUNTPOINT}/$n"; done + for n in proc sys dev tmp etc/resolv.conf; do mount --rbind "/$n" "${TARGETMOUNTPOINT}/$n"; done # Copy all scripts to the target /tmp for using in chroot session. echo "...Copy files in current dir to ${TARGETMOUNTPOINT}/tmp."