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

Implement bootcmd

This commit is contained in:
Josh Curl
2016-11-03 15:06:20 -07:00
parent 33b6145162
commit bb4ad618e1
6 changed files with 34 additions and 14 deletions

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) != "" {
if (len(cfg.Rancher.State.Autoformat) == 0 || util.ResolveDevice(cfg.Rancher.State.Dev) != "") && len(cfg.Bootcmd) == 0 {
return cfg, nil
}
log.Info("Running Bootstrap")