mirror of
https://github.com/rancher/os.git
synced 2025-07-02 01:31:48 +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
|
||||
}
|
||||
|
||||
if reboot && yes(in, "Continue with reboot") {
|
||||
if reboot && (force || yes(in, "Continue with reboot")) {
|
||||
log.Info("Rebooting")
|
||||
power.Reboot()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user