Merge pull request #491 from marineam/bind-root

enter_chroot: fix chroot root bind command
This commit is contained in:
Michael Marineau 2015-12-15 16:44:28 -08:00
commit db5d937aab

View File

@ -222,7 +222,7 @@ setup_env() {
# Make sure the new root directory itself is a mount point. Tools like
# unshare assume that things like `mount --make-rprivate /` work.
setup_mount "${MOUNTED_PATH}" "--bind" /
setup_mount "${MOUNTED_PATH}" "--rbind" /
setup_mount none "-t proc" /proc
setup_mount none "-t sysfs" /sys