1
0
mirror of https://github.com/rancher/os.git synced 2025-07-15 15:51:36 +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
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677

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