mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Ignore error creating /var/lib/system-docker if it already exists
This commit is contained in:
@@ -191,7 +191,7 @@ func setupSharedRoot(c *config.CloudConfig) (*config.CloudConfig, error) {
|
||||
|
||||
if isInitrd() {
|
||||
for _, i := range []string{"/mnt", "/media", "/var/lib/system-docker"} {
|
||||
if err := os.Mkdir(i, 0755); err != nil {
|
||||
if err := os.MkdirAll(i, 0755); err != nil {
|
||||
return c, err
|
||||
}
|
||||
if err := mount.Mount("tmpfs", i, "tmpfs", "rw"); err != nil {
|
||||
|
Reference in New Issue
Block a user