From: Keshav Padram Amburay Date: Sat, 23 Nov 2013 12:02:12 +0000 (+0100) Subject: * util/grub-install.c (update_nvram): Support --no-nvram flag X-Git-Tag: grub-2.02-beta1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ae5c54c7e5cb048cdd78a53181cee0da698a953;p=thirdparty%2Fgrub.git * util/grub-install.c (update_nvram): Support --no-nvram flag for EFI targets. --- diff --git a/ChangeLog b/ChangeLog index 5dc67eeeb..cf8513081 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-23 Keshav Padram Amburay + + * util/grub-install.c (update_nvram): Support --no-nvram flag + for EFI targets. + 2013-11-23 Vladimir Serbinenko * INSTALL: Add note about sparc64/ia64 with clang (unsupported). diff --git a/util/grub-install.c b/util/grub-install.c index 482317abd..5354a6d84 100644 --- a/util/grub-install.c +++ b/util/grub-install.c @@ -233,7 +233,7 @@ static struct argp_option options[] = { "This option is only available on BIOS target."), 2}, {"no-nvram", OPTION_NO_NVRAM, 0, 0, N_("don't update the `boot-device' NVRAM variable. " - "This option is only available on IEEE1275 targets."), 2}, + "This option is only available on EFI and IEEE1275 targets."), 2}, {"skip-fs-probe",'s',0, 0, N_("do not probe for filesystems in DEVICE"), 0}, {"no-bootsector", OPTION_NO_BOOTSECTOR, 0, 0, @@ -1522,7 +1522,7 @@ main (int argc, char *argv[]) grub_install_copy_file (imgfile, dst, 1); free (dst); } - if (!removable) + if (!removable && update_nvram) { char * efidir_disk; int efidir_part;