Split slave-bind mount into two.
mount(2) does not work with MS_BIND | MS_SLAVE at a time. Instead, this CL calls mount twice. Change-Id: I36b2eb2853f19efc2b0677fb07b6822392aac37c
This commit is contained in:
parent
c6bb5f459b
commit
ec8637ef6d
1 changed files with 2 additions and 1 deletions
|
|
@ -271,7 +271,8 @@ on post-fs
|
|||
# Mount shared so changes propagate into child namespaces
|
||||
mount rootfs rootfs / shared rec
|
||||
# Mount default storage into root namespace
|
||||
mount none /mnt/runtime/default /storage slave bind rec
|
||||
mount none /mnt/runtime/default /storage bind rec
|
||||
mount none none /storage slave rec
|
||||
|
||||
# Make sure /sys/kernel/debug (if present) is labeled properly
|
||||
restorecon_recursive /sys/kernel/debug
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue