From d725d99fa57e581e6d14fcde9a1ed01cd25b7a24 Mon Sep 17 00:00:00 2001 From: Cougar Date: Thu, 25 Aug 2016 01:51:33 +0300 Subject: [PATCH] Do not ask about reboot if --force and no --no-reboot --- cmd/control/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/control/install.go b/cmd/control/install.go index dbf6374a..e937a572 100644 --- a/cmd/control/install.go +++ b/cmd/control/install.go @@ -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() }