1
0
mirror of https://github.com/rancher/os.git synced 2025-08-30 21:26:09 +00:00

Merge pull request #1682 from SvenDowideit/dont-prompt-for-reboot-on-install-failure

Don't prompt / reboot if there was an install error
This commit is contained in:
Sven Dowideit 2017-03-13 17:19:11 +10:00 committed by GitHub
commit 6611eb1134

View File

@ -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")) {