1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 13:17:17 +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
parent a888a57cd9
commit 7241390042
4 changed files with 31 additions and 0 deletions

View File

@@ -224,6 +224,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,
}