Don't let "elemental" reboot

because the Lifecycle hook will do that

Fixes https://github.com/kairos-io/kairos/issues/1460

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis
2023-05-31 12:42:44 +03:00
parent 5fe8eb8cc2
commit 0ae57a99aa

View File

@@ -300,8 +300,12 @@ func RunInstall(debug bool, options map[string]string) error {
_, reboot := options["reboot"]
_, poweroff := options["poweroff"]
installConfig.Reboot = reboot
installConfig.PowerOff = poweroff
if poweroff {
c.Install.Poweroff = true
}
if reboot {
c.Install.Reboot = true
}
// Generate the installation spec
installSpec, err := elementalConfig.ReadInstallSpec(installConfig)