1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

/media and /mnt mounted as shared for console

This commit is contained in:
Josh Curl
2016-05-04 16:18:24 -07:00
committed by Darren Shepherd
parent 3728a328ea
commit 9f0074c398
4 changed files with 31 additions and 0 deletions

View File

@@ -218,6 +218,9 @@ func RunInit() error {
return c, dockerlaunch.PrepareFs(&mountConfig)
},
initializeSelinux,
func(c *config.CloudConfig) (*config.CloudConfig, error) {
return c, syscall.Mount("", "/", "", syscall.MS_SHARED|syscall.MS_REC, "")
},
sysInit,
}