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:
parent
7d129a88a5
commit
3e44f99055
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue