feat(installation): allow to abort installation if sentinel file is present

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2024-08-21 09:25:10 +02:00
parent f3601ef61d
commit 75ff3cbdd4
4 changed files with 87 additions and 64 deletions

View File

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