1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Run bootstrap services even if autoformat isn't set

This commit is contained in:
Josh Curl
2017-01-04 16:18:33 -08:00
parent 81b35c69e1
commit 68f3b9cfda

View File

@@ -11,7 +11,7 @@ import (
)
func bootstrapServices(cfg *config.CloudConfig) (*config.CloudConfig, error) {
if (len(cfg.Rancher.State.Autoformat) == 0 || util.ResolveDevice(cfg.Rancher.State.Dev) != "") && len(cfg.Bootcmd) == 0 {
if util.ResolveDevice(cfg.Rancher.State.Dev) != "" && len(cfg.Bootcmd) == 0 {
return cfg, nil
}
log.Info("Running Bootstrap")