summaryrefslogtreecommitdiff
path: root/usr/src/cmd/boot/installgrub/installgrub.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/boot/installgrub/installgrub.c')
-rw-r--r--usr/src/cmd/boot/installgrub/installgrub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/boot/installgrub/installgrub.c b/usr/src/cmd/boot/installgrub/installgrub.c
index c5bcbeb6ca..f1beaa473b 100644
--- a/usr/src/cmd/boot/installgrub/installgrub.c
+++ b/usr/src/cmd/boot/installgrub/installgrub.c
@@ -360,6 +360,7 @@ found_part:
if (getchar() != 'y') {
write_mboot = 0;
(void) fprintf(stdout, MBOOT_NOT_UPDATED);
+ exit(-1);
}
}
@@ -368,8 +369,7 @@ found_part:
* write GRUB to the MBR. Check for this.
*/
if (log_part && !write_mboot) {
- (void) fprintf(stderr, EXTSOLPAR);
- exit(-1);
+ write_mboot = 1;
}
/*