1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 06:32:09 +00:00

Do not ask about reboot if --force and no --no-reboot

This commit is contained in:
Cougar 2016-08-25 01:51:33 +03:00
parent f468cdb307
commit d725d99fa5

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