mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-20 10:44:25 +00:00
Fix missing sysroot mount in fstab (#121)
This commit is contained in:
@@ -18,11 +18,11 @@ type mountOperation struct {
|
||||
|
||||
func (m mountOperation) run() error {
|
||||
// Add context to sublogger
|
||||
l := internalUtils.Log.With().Str("what", m.MountOption.Source).Str("where", m.Target).Str("type", m.MountOption.Type).Strs("options", m.MountOption.Options).Logger().Level(zerolog.InfoLevel)
|
||||
l := internalUtils.Log.With().Str("what", m.MountOption.Source).Str("where", m.Target).Str("type", m.MountOption.Type).Strs("options", m.MountOption.Options).Logger()
|
||||
// Not sure why this defaults to debuglevel when creating a sublogger, so make sure we set it properly
|
||||
debug := len(internalUtils.ReadCMDLineArg("rd.immucore.debug")) > 0
|
||||
if debug {
|
||||
l.Level(zerolog.DebugLevel)
|
||||
l = l.Level(zerolog.DebugLevel)
|
||||
}
|
||||
|
||||
if m.PrepareCallback != nil {
|
||||
|
Reference in New Issue
Block a user