mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-16 06:58:58 +00:00
Several fixes
- set debug level via cmdline - set default RW paths needed ALWAYS to boot a working system, even with no config files(recovery) - Check for loop device before mounting it to avoid duplicated mounts - Force overlay and bind arrays to uniqueness - Rename OverlayDir to OverlayDirs to better represent the content Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
@@ -30,7 +30,12 @@ Sends a generic event payload with the configuration found in the scanned direct
|
||||
},
|
||||
},
|
||||
Action: func(c *cli.Context) (err error) {
|
||||
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr}).With().Logger()
|
||||
logLevel := zerolog.InfoLevel
|
||||
debug := utils.ReadCMDLineArg("rd.immucore.debug")
|
||||
if len(debug) > 0 {
|
||||
logLevel = zerolog.DebugLevel
|
||||
}
|
||||
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr}).With().Logger().Level(logLevel)
|
||||
|
||||
// If we boot from CD, we do nothing
|
||||
cdBoot, err := utils.BootedFromCD()
|
||||
|
Reference in New Issue
Block a user