1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

Fix grub 1 install

This commit is contained in:
Shea Levy 2015-02-19 19:33:17 -05:00
parent 7d129a88a5
commit 3e44f99055

View file

@ -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 }