1
0
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:
Darren Shepherd 2016-08-24 16:32:12 -07:00 committed by GitHub
commit 22ab564dac

View File

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