mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Remove rancher.state.formatzero kernel parameter
This commit is contained in:
@@ -3,7 +3,6 @@ package init
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
@@ -18,9 +17,8 @@ func autoformat(cfg *config.CloudConfig) (*config.CloudConfig, error) {
|
||||
return cfg, nil
|
||||
}
|
||||
AUTOFORMAT := "AUTOFORMAT=" + strings.Join(cfg.Rancher.State.Autoformat, " ")
|
||||
FORMATZERO := "FORMATZERO=" + fmt.Sprint(cfg.Rancher.State.FormatZero)
|
||||
t := *cfg
|
||||
t.Rancher.Autoformat["autoformat"].Environment = []string{AUTOFORMAT, FORMATZERO}
|
||||
t.Rancher.Autoformat["autoformat"].Environment = []string{AUTOFORMAT}
|
||||
log.Info("Running Autoformat services")
|
||||
_, err := compose.RunServiceSet("autoformat", &t, t.Rancher.Autoformat)
|
||||
return &t, err
|
||||
|
Reference in New Issue
Block a user