mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-16 06:29:46 +00:00
feat(installation): allow to abort installation if sentinel file is present
Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
@@ -84,6 +84,11 @@ func (i *InstallAction) Run() (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
// Check if we should fail the installation by checking the sentinel file FailInstallationFileSentinel
|
||||
if toFail, err := utils.CheckFailedInstallation(constants.FailInstallationFileSentinel); toFail {
|
||||
return err
|
||||
}
|
||||
|
||||
// Store cloud-config in TPM or copy it to COS_OEM?
|
||||
// Copy cloud-init if any
|
||||
err = e.CopyCloudConfig(i.spec.CloudInit)
|
||||
|
Reference in New Issue
Block a user