summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-26 15:56:07 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-26 15:56:07 +0000
commit689d9fb3aa145ed8394598bd23bd480281a56593 (patch)
tree6e12ecced0938dce1e4d6932f074e55a663ab041 /perl-install/bootloader.pm
parent6edce70d9b4423c65f05634cd37a0adad5203fe5 (diff)
downloaddrakx-689d9fb3aa145ed8394598bd23bd480281a56593.tar
drakx-689d9fb3aa145ed8394598bd23bd480281a56593.tar.gz
drakx-689d9fb3aa145ed8394598bd23bd480281a56593.tar.bz2
drakx-689d9fb3aa145ed8394598bd23bd480281a56593.tar.xz
drakx-689d9fb3aa145ed8394598bd23bd480281a56593.zip
added prioritary kernel entry 'default' as the kernel typically copied from a
modified blank.img file with a kernel (no initrd.img necessary to build). This kernel takes precedance over any other kernel.
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 1c6d8e37a..04697998f 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -307,6 +307,20 @@ wait %d seconds for default boot.
$entry->{append} .= " quiet" if $vga_fb;
$failsafe->{append} .= " failsafe" if $failsafe && !$lilo->{password};
+ #- manage prioritary default kernel (given as /boot/vmlinuz-default).
+ if (-e "$prefix/boot/vmlinuz-default") {
+ #- we use directly add_entry as no initrd should be done.
+ add_entry($lilo->{entries},
+ {
+ type => 'image',
+ label => 'default',
+ root => "/dev/$root",
+ kernel_or_dev => '/boot/vmlinuz-default',
+ append => $lilo->{perImageAppend},
+ });
+ $lilo->{default} = 'default'; #- this one should be booted by default now.
+ }
+
#- manage older kernel if installed.
foreach (qw(2.2 hack)) {
my $hasOld = -e "$prefix/boot/vmlinuz-$_";