Merge pull request #4779 from vieux/symlink_mtab

symlink /etc/mtab and /proc/mounts
Upstream-commit: b5caa5053a561b02e14dd26395e08351e519dae1
Component: engine
This commit is contained in:
unclejack
2014-04-02 20:57:04 +03:00
+5
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