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.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index a029f099a..b4ebc5715 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -114,6 +114,11 @@ sub read_grub {
}
}
}
+ # Generating /etc/lilo.conf require having a boot device:
+ foreach (cat_("$::prefix/boot/grub/install.sh")) {
+ $b{boot} = grub2dev($1) if /\s*d\s* (\(.*?\))\s*/;
+ }
+
$b{default} = $b{entries}[$b{default}]->{label};
\%b;