From e80342d36933641306fecc5a1fc834d04b73758f Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Mon, 13 Mar 2017 16:36:50 +1000 Subject: [PATCH] Don't prompt / reboot if there was an install error Signed-off-by: Sven Dowideit --- cmd/control/install.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/control/install.go b/cmd/control/install.go index 1ff89c81..f7e858fa 100755 --- a/cmd/control/install.go +++ b/cmd/control/install.go @@ -145,6 +145,7 @@ func installAction(c *cli.Context) error { if err := runInstall(image, installType, cloudConfig, device, kappend, force, kexec, isoinstallerloaded); err != nil { log.WithFields(log.Fields{"err": err}).Fatal("Failed to run install") + return err } if !kexec && reboot && (force || yes("Continue with reboot")) {