summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
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) {