mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
Merge pull request #491 from marineam/bind-root
enter_chroot: fix chroot root bind command
This commit is contained in:
commit
db5d937aab
@ -222,7 +222,7 @@ setup_env() {
|
|||||||
|
|
||||||
# Make sure the new root directory itself is a mount point. Tools like
|
# Make sure the new root directory itself is a mount point. Tools like
|
||||||
# unshare assume that things like `mount --make-rprivate /` work.
|
# 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 proc" /proc
|
||||||
setup_mount none "-t sysfs" /sys
|
setup_mount none "-t sysfs" /sys
|
||||||
|
Loading…
Reference in New Issue
Block a user