Fix missing sysroot mount in fstab (#121)

This commit is contained in:
Itxaka
2023-05-05 12:34:23 +02:00
committed by GitHub
parent d1d05b4ddd
commit 2e9e5de03e
4 changed files with 28 additions and 9 deletions

View File

@@ -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 {