mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-14 13:40:46 +00:00
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:
@@ -300,8 +300,12 @@ func RunInstall(debug bool, options map[string]string) error {
|
|||||||
|
|
||||||
_, reboot := options["reboot"]
|
_, reboot := options["reboot"]
|
||||||
_, poweroff := options["poweroff"]
|
_, poweroff := options["poweroff"]
|
||||||
installConfig.Reboot = reboot
|
if poweroff {
|
||||||
installConfig.PowerOff = poweroff
|
c.Install.Poweroff = true
|
||||||
|
}
|
||||||
|
if reboot {
|
||||||
|
c.Install.Reboot = true
|
||||||
|
}
|
||||||
|
|
||||||
// Generate the installation spec
|
// Generate the installation spec
|
||||||
installSpec, err := elementalConfig.ReadInstallSpec(installConfig)
|
installSpec, err := elementalConfig.ReadInstallSpec(installConfig)
|
||||||
|
Reference in New Issue
Block a user