mirror of
https://github.com/rancher/os.git
synced 2025-07-03 18:16:13 +00:00
Merge pull request #1185 from Cougar/force-reboot
Do not ask about reboot if --force and no --no-reboot
This commit is contained in:
commit
22ab564dac
@ -116,7 +116,7 @@ func runInstall(image, installType, cloudConfig, device string, force, reboot bo
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if reboot && yes(in, "Continue with reboot") {
|
if reboot && (force || yes(in, "Continue with reboot")) {
|
||||||
log.Info("Rebooting")
|
log.Info("Rebooting")
|
||||||
power.Reboot()
|
power.Reboot()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user