Merge pull request #36 from kairos-io/1460-run-after-install-hooks

Run after install hooks before rebooting
This commit is contained in:
Dimitris Karakasilis
2023-05-31 12:58:47 +03:00
committed by GitHub

View File

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