diff --git a/script/lib/common.sh b/script/lib/common.sh index ec076b5..b5fd1b4 100644 --- a/script/lib/common.sh +++ b/script/lib/common.sh @@ -296,7 +296,9 @@ function post_install() { # And mount other directories echo "...Mounting all other dirs." - for n in proc sys dev tmp etc/resolv.conf; do mount --rbind "/$n" "${TARGETMOUNTPOINT}/$n"; done + 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 # Copy all scripts to the target /tmp for using in chroot session. echo "...Copy files in current dir to ${TARGETMOUNTPOINT}/tmp."