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
|
# 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…
x
Reference in New Issue
Block a user