mirror of
https://github.com/rancher/os.git
synced 2025-09-06 01:01:43 +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 {
|
func bootstrap(cfg *config.Config) error {
|
||||||
|
if util.ResolveDevice(cfg.State.Dev) != "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
log.Info("Starting bootstrap")
|
log.Info("Starting bootstrap")
|
||||||
c, err := startDocker(cfg)
|
c, err := startDocker(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user