mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Fix grub 1 install
This commit is contained in:
parent
7d129a88a5
commit
3e44f99055
1 changed files with 3 additions and 1 deletions
|
@ -448,7 +448,9 @@ sub getDeviceTargets {
|
||||||
|
|
||||||
# check whether to install GRUB EFI or not
|
# check whether to install GRUB EFI or not
|
||||||
sub getEfiTarget {
|
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;
|
# EFI can only be installed when target is set;
|
||||||
# A target is also required then for non-EFI grub
|
# A target is also required then for non-EFI grub
|
||||||
if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }
|
if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue