1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 21:23:13 +00:00

Mount the boot partition when booting

Also update StateDir and OemDir for better clarity
This commit is contained in:
niusmallnan
2018-09-30 14:30:25 +08:00
committed by niusmallnan
parent 0b5002fa47
commit eeebf0ae0f
12 changed files with 244 additions and 226 deletions

View File

@@ -48,16 +48,17 @@ func RunInit() error {
{"set env", env.Init},
{"preparefs", prepare.FS},
{"save init cmdline", prepare.SaveCmdline},
{"mount OEM", fsmount.OEM},
{"mount OEM", fsmount.MountOem},
{"debug save cfg", debug.PrintAndLoadConfig},
{"load modules", modules.LoadModules},
{"recovery console", recovery.LoadRecoveryConsole},
{"cloud-init", cloudinit.CloudInit},
{"b2d env", b2d.B2D},
{"mount and bootstrap", fsmount.MountAndBootstrap},
{"mount STATE and bootstrap", fsmount.MountStateAndBootstrap},
{"read cfg and log files", configfiles.ReadConfigFiles},
{"switchroot", switchroot.SwitchRoot},
{"mount OEM2", fsmount.OEM},
{"mount OEM2", fsmount.MountOem},
{"mount BOOT", fsmount.MountBoot},
{"write cfg and log files", configfiles.WriteConfigFiles},
{"hypervisor Env", hypervisor.Env},
{"b2d Env", b2d.Env},