mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-07 01:30:01 +00:00
Use SDK to get machine state
This commit is contained in:
@@ -49,11 +49,17 @@ Sends a generic event payload with the configuration found in the scanned direct
|
||||
return err
|
||||
}
|
||||
|
||||
if utils.BootedFromCD(fs) {
|
||||
log.Info().Msg("Seems we booted from CD, doing nothing. Bye!")
|
||||
cdBoot, err := utils.BootedFromCD(fs)
|
||||
if err != nil {
|
||||
s.Logger.Err(err)
|
||||
return err
|
||||
}
|
||||
|
||||
if cdBoot {
|
||||
log.Info().Msg("Seems we booted from CD, doing nothing. Bye!")
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Print("Calling dag")
|
||||
return g.Run(context.Background())
|
||||
},
|
||||
|
Reference in New Issue
Block a user