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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user