summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-14 19:22:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-14 19:22:41 +0000
commitd9824a39bd62ccf2f273f88cb3e67f5ae3fb4768 (patch)
treefed9b51d4216d4289e05d31cf73c53fe55e345ad /perl-install
parentdba29e5d7d8a55063756e34dd6aeb00596faa62a (diff)
downloaddrakx-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar
drakx-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar.gz
drakx-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar.bz2
drakx-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar.xz
drakx-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.zip
fix /etc/lilo.conf generation when reading grub config by setting valid boot=
parameter
Diffstat (limited to 'perl-install')
-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;