1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Remove system-docker syslink

This commit is contained in:
niusmallnan
2018-02-27 17:52:24 +08:00
committed by niusmallnan
parent 48e9314d0c
commit a7ba5d045b
3 changed files with 5 additions and 8 deletions

View File

@@ -230,11 +230,11 @@ func runInstall(image, installType, cloudConfig, device, partition, statedir, ka
}
}
if _, err := os.Stat("/usr/bin/system-docker"); os.IsNotExist(err) {
if err := os.Symlink("/usr/bin/ros", "/usr/bin/system-docker"); err != nil {
log.Errorf("ln error %s", err)
}
}
//if _, err := os.Stat("/usr/bin/system-docker"); os.IsNotExist(err) {
//if err := os.Symlink("/usr/bin/ros", "/usr/bin/system-docker"); err != nil {
//log.Errorf("ln error %s", err)
//}
//}
useIso := false
// --isoinstallerloaded is used if the ros has created the installer container from and image that was on the booted iso