mirror of
https://github.com/rancher/os.git
synced 2025-09-02 15:24:32 +00:00
make golang files to pass the latest go lints
- use constructors with named fields - fix logf statements
This commit is contained in:
committed by
Olli Janatuinen
parent
6fd46ddee4
commit
6cde287f87
@@ -43,29 +43,29 @@ func MainInit() {
|
||||
|
||||
func RunInit() error {
|
||||
initFuncs := config.CfgFuncs{
|
||||
{"set env", env.Init},
|
||||
{"preparefs", prepare.FS},
|
||||
{"save init cmdline", prepare.SaveCmdline},
|
||||
{"mount OEM", fsmount.MountOem},
|
||||
{"debug save cfg", debug.PrintAndLoadConfig},
|
||||
{"load modules", modules.LoadModules},
|
||||
{"recovery console", recovery.LoadRecoveryConsole},
|
||||
{"b2d env", b2d.B2D},
|
||||
{"mount STATE and bootstrap", fsmount.MountStateAndBootstrap},
|
||||
{"cloud-init", cloudinit.CloudInit},
|
||||
{"read cfg and log files", configfiles.ReadConfigFiles},
|
||||
{"switchroot", switchroot.SwitchRoot},
|
||||
{"mount OEM2", fsmount.MountOem},
|
||||
{"mount BOOT", fsmount.MountBoot},
|
||||
{"write cfg and log files", configfiles.WriteConfigFiles},
|
||||
{"b2d Env", b2d.Env},
|
||||
{"hypervisor tools", hypervisor.Tools},
|
||||
{"preparefs2", prepare.FS},
|
||||
{"load modules2", modules.LoadModules},
|
||||
{"set proxy env", env.Proxy},
|
||||
{"init SELinux", selinux.Initialize},
|
||||
{"setupSharedRoot", sharedroot.Setup},
|
||||
{"sysinit", sysinit.RunSysInit},
|
||||
{Name: "set env", Func: env.Init},
|
||||
{Name: "preparefs", Func: prepare.FS},
|
||||
{Name: "save init cmdline", Func: prepare.SaveCmdline},
|
||||
{Name: "mount OEM", Func: fsmount.MountOem},
|
||||
{Name: "debug save cfg", Func: debug.PrintAndLoadConfig},
|
||||
{Name: "load modules", Func: modules.LoadModules},
|
||||
{Name: "recovery console", Func: recovery.LoadRecoveryConsole},
|
||||
{Name: "b2d env", Func: b2d.B2D},
|
||||
{Name: "mount STATE and bootstrap", Func: fsmount.MountStateAndBootstrap},
|
||||
{Name: "cloud-init", Func: cloudinit.CloudInit},
|
||||
{Name: "read cfg and log files", Func: configfiles.ReadConfigFiles},
|
||||
{Name: "switchroot", Func: switchroot.SwitchRoot},
|
||||
{Name: "mount OEM2", Func: fsmount.MountOem},
|
||||
{Name: "mount BOOT", Func: fsmount.MountBoot},
|
||||
{Name: "write cfg and log files", Func: configfiles.WriteConfigFiles},
|
||||
{Name: "b2d Env", Func: b2d.Env},
|
||||
{Name: "hypervisor tools", Func: hypervisor.Tools},
|
||||
{Name: "preparefs2", Func: prepare.FS},
|
||||
{Name: "load modules2", Func: modules.LoadModules},
|
||||
{Name: "set proxy env", Func: env.Proxy},
|
||||
{Name: "init SELinux", Func: selinux.Initialize},
|
||||
{Name: "setupSharedRoot", Func: sharedroot.Setup},
|
||||
{Name: "sysinit", Func: sysinit.RunSysInit},
|
||||
}
|
||||
|
||||
cfg, err := config.ChainCfgFuncs(nil, initFuncs)
|
||||
|
Reference in New Issue
Block a user