1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

This makes early initrd logging work

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-12 15:17:03 +10:00
parent bb20e96a98
commit bf98a1ae3f
5 changed files with 10 additions and 3 deletions

View File

@@ -95,6 +95,8 @@ func sysInit(c *config.CloudConfig) (*config.CloudConfig, error) {
func MainInit() {
log.InitDeferedLogger()
log.Infof("MainInit() start")
defer log.Infof("MainInit() finish")
if err := RunInit(); err != nil {
log.Fatal(err)
}
@@ -414,6 +416,7 @@ func RunInit() error {
return err
}
log.Infof("RunInit() finished")
log.SyslogReady(true)
return pidOne()