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

only run bootstrap (including auto-formatter) if we can not resolve state drive

This commit is contained in:
Ivan Mikushin
2015-07-22 18:44:56 +05:00
parent d33698d17b
commit a636157882

View File

@@ -66,6 +66,10 @@ func stopDocker(c chan interface{}) error {
}
func bootstrap(cfg *config.Config) error {
if util.ResolveDevice(cfg.State.Dev) != "" {
return nil
}
log.Info("Starting bootstrap")
c, err := startDocker(cfg)
if err != nil {