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:
@@ -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...)
|
||||
},
|
||||
|
Reference in New Issue
Block a user