1
0
mirror of https://github.com/rancher/os.git synced 2025-08-01 23:17:50 +00:00

Merge pull request #1027 from ibuildthecloud/foo4

Make /run shared, also don't rshare in initrd
This commit is contained in:
Darren Shepherd 2016-06-17 09:37:01 -07:00 committed by GitHub
commit e058c82515
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ for i in /opt/bin /usr/local/bin; do
done
mount --make-shared /
mount --make-shared /run
if [ "$(grep '/var/lib/docker /var/lib/docker ' /proc/self/mountinfo | awk '{print $9}')" = "rootfs" ]; then
export DOCKER_RAMDISK=1

View File

@ -194,7 +194,7 @@ func setupSharedRoot(c *config.CloudConfig) (*config.CloudConfig, error) {
if err := mount.Mount("tmpfs", i, "tmpfs", "rw"); err != nil {
return c, err
}
if err := mount.MakeRShared(i); err != nil {
if err := mount.MakeShared(i); err != nil {
return c, err
}
}