diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-14 19:22:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-14 19:22:41 +0000 |
commit | d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768 (patch) | |
tree | fed9b51d4216d4289e05d31cf73c53fe55e345ad /perl-install/bootloader.pm | |
parent | dba29e5d7d8a55063756e34dd6aeb00596faa62a (diff) | |
download | drakx-backup-do-not-use-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar drakx-backup-do-not-use-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar.gz drakx-backup-do-not-use-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar.bz2 drakx-backup-do-not-use-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.tar.xz drakx-backup-do-not-use-d9824a39bd62ccf2f273f88cb3e67f5ae3fb4768.zip |
fix /etc/lilo.conf generation when reading grub config by setting valid boot=
parameter
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 5 |
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; |