Merge pull request #4779 from vieux/symlink_mtab

symlink /etc/mtab and /proc/mounts
This commit is contained in:
unclejack 2014-04-02 20:57:04 +03:00
commit b5caa5053a

View file

@ -259,6 +259,7 @@ func SetupInitLayer(initLayer string) error {
"/etc/hosts": "file",
"/etc/hostname": "file",
"/dev/console": "file",
"/etc/mtab": "/proc/mounts",
// "var/run": "dir",
// "var/lock": "dir",
} {
@ -285,6 +286,10 @@ func SetupInitLayer(initLayer string) error {
return err
}
f.Close()
default:
if err := os.Symlink(typ, path.Join(initLayer, pth)); err != nil {
return err
}
}
} else {
return err