diff options
author | Jan Setje-Eilers <Jan.Setje-Eilers@Sun.COM> | 2010-03-15 16:21:34 -0700 |
---|---|---|
committer | Jan Setje-Eilers <Jan.Setje-Eilers@Sun.COM> | 2010-03-15 16:21:34 -0700 |
commit | 1ff15af9af2057a21a73cedc235f09941a75504b (patch) | |
tree | 8c77a1c62bf260d0f608830fb5b2c29b31a6c084 | |
parent | 53ee74637eb3ca802346e59313ac49683b6a9420 (diff) | |
download | illumos-gate-1ff15af9af2057a21a73cedc235f09941a75504b.tar.gz |
6932358 installgrub needs to support extended partitions without forcing the use of the -m optiononnv_136
-rw-r--r-- | usr/src/cmd/boot/installgrub/installgrub.c | 4 | ||||
-rw-r--r-- | usr/src/cmd/boot/installgrub/message.h | 5 |
2 files changed, 3 insertions, 6 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; } /* diff --git a/usr/src/cmd/boot/installgrub/message.h b/usr/src/cmd/boot/installgrub/message.h index 8bc491f71c..6a2b98069d 100644 --- a/usr/src/cmd/boot/installgrub/message.h +++ b/usr/src/cmd/boot/installgrub/message.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -45,9 +45,6 @@ extern "C" { #define BOOTPAR_NOTFOUND \ gettext("Solaris boot partition not found on %s\n") -#define EXTSOLPAR \ - gettext("Solaris in extended partition. -m (MBR) option required\n") - #define NOT_RAW_DEVICE gettext("device %s is not a char special device\n") #define NOT_ROOT_SLICE gettext("raw device must be a root slice (not s2)\n") |