mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31:17 -03:00
Fix the unmount fails
Trial fix. Change the --rbinds to --make-slave. #17
This commit is contained in:
parent
40264ce02f
commit
e5417d78a3
1 changed files with 3 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue