From 3e44f99055a0c9fddc49dc99301efbc80d497a82 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 19 Feb 2015 19:33:17 -0500 Subject: [PATCH] Fix grub 1 install --- nixos/modules/system/boot/loader/grub/install-grub.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/loader/grub/install-grub.pl b/nixos/modules/system/boot/loader/grub/install-grub.pl index 74a934c67931..2ef1fca19835 100644 --- a/nixos/modules/system/boot/loader/grub/install-grub.pl +++ b/nixos/modules/system/boot/loader/grub/install-grub.pl @@ -448,7 +448,9 @@ sub getDeviceTargets { # check whether to install GRUB EFI or not sub getEfiTarget { - if (($grub ne "") && ($grubEfi ne "")) { + if ($grubVersion == 1) { + return "no" + } elsif (($grub ne "") && ($grubEfi ne "")) { # EFI can only be installed when target is set; # A target is also required then for non-EFI grub if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }