summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 9b1157ba9..012921026 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -230,7 +230,11 @@ sub read_grub {
}
}
foreach (cat_("$::prefix/boot/grub/install.sh")) {
- $b{boot} = grub2dev($1, $grub2dev) if /\s+d\s+(\(.*?\))/;
+ if (/\s+d\s+(\(.*?\))/) {
+ $b{boot} = grub2dev($1, $grub2dev);
+ } elsif (/^setup\s+(\(.*?\))/) {
+ $b{boot} = grub2dev($1, $grub2dev);
+ }
}
#- sanitize