From d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 14 Jul 2003 19:22:41 +0000 Subject: fix /etc/lilo.conf generation when reading grub config by setting valid boot= parameter --- perl-install/bootloader.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/bootloader.pm') 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; -- cgit v1.2.1