mirror of
https://github.com/rancher/os.git
synced 2025-08-11 03:22:49 +00:00
Merge pull request #1027 from ibuildthecloud/foo4
Make /run shared, also don't rshare in initrd
This commit is contained in:
commit
e058c82515
@ -20,6 +20,7 @@ for i in /opt/bin /usr/local/bin; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
mount --make-shared /
|
mount --make-shared /
|
||||||
|
mount --make-shared /run
|
||||||
|
|
||||||
if [ "$(grep '/var/lib/docker /var/lib/docker ' /proc/self/mountinfo | awk '{print $9}')" = "rootfs" ]; then
|
if [ "$(grep '/var/lib/docker /var/lib/docker ' /proc/self/mountinfo | awk '{print $9}')" = "rootfs" ]; then
|
||||||
export DOCKER_RAMDISK=1
|
export DOCKER_RAMDISK=1
|
||||||
|
@ -194,7 +194,7 @@ func setupSharedRoot(c *config.CloudConfig) (*config.CloudConfig, error) {
|
|||||||
if err := mount.Mount("tmpfs", i, "tmpfs", "rw"); err != nil {
|
if err := mount.Mount("tmpfs", i, "tmpfs", "rw"); err != nil {
|
||||||
return c, err
|
return c, err
|
||||||
}
|
}
|
||||||
if err := mount.MakeRShared(i); err != nil {
|
if err := mount.MakeShared(i); err != nil {
|
||||||
return c, err
|
return c, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user