Set the sentinel file from immucore directly

Also add a missing livecd sentinel file

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-02-13 21:42:45 +01:00
parent 1d6572faaa
commit 076bba95dc
4 changed files with 42 additions and 14 deletions

View File

@@ -38,6 +38,13 @@ Sends a generic event payload with the configuration found in the scanned direct
zerolog.SetGlobalLevel(zerolog.DebugLevel)
}
// First set the sentinel file
err = utils.SetSentinelFile()
if err != nil {
log.Logger.Err(err).Send()
return err
}
// If we boot from CD, we do nothing
cdBoot, err := utils.BootedFromCD()
if err != nil {