summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-09-01 15:05:07 +0000
committerFrancois Pons <fpons@mandriva.com>2000-09-01 15:05:07 +0000
commit0561ded3da8b143d586e937e3df56cfb4278b441 (patch)
treee5c5d57cafb5082ca08404132cb4b435941a6352 /perl-install/bootloader.pm
parent57c044f8c323f2d44fc55e77dd70afece7cc8bc8 (diff)
downloaddrakx-0561ded3da8b143d586e937e3df56cfb4278b441.tar
drakx-0561ded3da8b143d586e937e3df56cfb4278b441.tar.gz
drakx-0561ded3da8b143d586e937e3df56cfb4278b441.tar.bz2
drakx-0561ded3da8b143d586e937e3df56cfb4278b441.tar.xz
drakx-0561ded3da8b143d586e937e3df56cfb4278b441.zip
*** empty log message ***
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm14
1 files changed, 12 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 97e3ecd04..c5b570620 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -190,8 +190,8 @@ sub dev2prompath { #- SPARC only
$dev;
}
-sub suggest($$$$$) {
- my ($prefix, $lilo, $hds, $fstab, $kernelVersion) = @_;
+sub suggest($$$$$;$) {
+ my ($prefix, $lilo, $hds, $fstab, $kernelVersion, $vga_fb) = @_;
my $root_part = fsedit::get_root($fstab);
my $root = isLoopback($root_part) ? "loop7" : $root_part->{device};
my $boot = fsedit::get_root($fstab, 'boot')->{device};
@@ -265,6 +265,16 @@ wait %d seconds for default boot.
root => "/dev/$root",
})->{append} .= " failsafe" unless $lilo->{password};
+ if (-e "$prefix/boot/vmlinuz-${kernelVersion}fb") {
+ add_kernel($prefix, $lilo, $kernelVersion, 'fb',
+ {
+ label => 'linux-fb',
+ root => "/dev/$root",
+ $vga_fb ? ( vga => $vga_fb) : (), #- specific mode for kernel-fb.
+ });
+ $vga_fb and $lilo->{default} = 'linux-fb'; #- make it by default.
+ }
+
#- manage hackkernel if installed.
my $hasHack = -e "$prefix/boot/vmlinuz-hack";
if ($hasHack) {