mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-30 12:52:18 +01:00
enter_chroot: fix chroot root bind command
Commit 09851b84 didn't do a recursive bind by mistake, so if the host system has anything mounted under the chroot directory for some reason the bind would hide those mounts. Recursive ensures existing mounts remain exposed as they did before.
This commit is contained in:
parent
09851b8460
commit
3fdd2033dc
@ -218,7 +218,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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user