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

Don't prompt / reboot if there was an install error

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-03-13 16:36:50 +10:00
parent 23edbd05e8
commit e80342d369

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