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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user