1
0
mirror of https://github.com/rancher/os.git synced 2025-09-06 17:22:34 +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
committed by Sven Dowideit
parent 19e8c841f8
commit 4155dee5fa

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")