@@ -448,7 +448,9 @@ sub getDeviceTargets {
448448
449449# check whether to install GRUB EFI or not
450450sub getEfiTarget {
451− if (($grub ne "") && ($grubEfi ne "")) {
451+ if ($grubVersion == 1) {
452+ return "no"
453+ } elsif (($grub ne "") && ($grubEfi ne "")) {
452454 # EFI can only be installed when target is set;
453455 # A target is also required then for non-EFI grub
454456 if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }