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

Don't symlink docker location, store at /var/lib/[system-]docker

This commit is contained in:
Darren Shepherd
2015-03-19 11:41:47 -07:00
parent 3c44f0ef5b
commit 4e668e6e30

View File

@@ -27,7 +27,6 @@ var (
}
postDirs []string = []string{
"/var/log",
"/var/lib/rancher/state/docker",
"/var/lib/rancher/state/home",
"/var/lib/rancher/state/opt",
}
@@ -64,9 +63,6 @@ var (
"/home": "/var/lib/rancher/state/home",
"/opt": "/var/lib/rancher/state/opt",
}
postSymlinks map[string]string = map[string]string{
"/var/lib/docker": "/var/lib/rancher/state/docker",
}
)
func createSymlinks(cfg *config.Config, symlinks map[string]string) error {
@@ -324,9 +320,6 @@ func RunInit() error {
func(cfg *config.Config) error {
return createDirs(postDirs...)
},
func(cfg *config.Config) error {
return createSymlinks(cfg, postSymlinks)
},
func(cfg *config.Config) error {
return createMounts(postMounts...)
},