git.iko.soy/typeable/nixpkgs
on master help sign in
Fix grub 1 install
commit3e44f99055a0c9fddc49dc99301efbc80d497a82 authorShea Levy <shea@shealevy.com> dateThu 19 Feb 2015, 19:33 (12 years ago) parent7d129a8
1 file changed+3−1
nixos/modules/system/boot/loader/grub/install-grub.pl+3−1
nixos/modules/system/boot/loader/grub/install-grub.pl+3−1
@@ -448,7 +448,9 @@ sub getDeviceTargets {
448448
449449# check whether to install GRUB EFI or not
450450sub getEfiTarget {
451− if (($grub ne "") && ($grubEfi ne "")) {
451+ if ($grubVersion == 1) {
452+ return "no"
453+ } elsif (($grub ne "") && ($grubEfi ne "")) {
452454 # EFI can only be installed when target is set;
453455 # A target is also required then for non-EFI grub
454456 if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }