From 57a6d09b9681ea4b2db7c07848b87a1101eb0e68 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 11 Feb 2002 23:15:29 +0000 Subject: booh, fpons was faster than me on "bootsplash wanting fb". Keeping my solution ;p --- perl-install/install_steps.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 1a06d5648..7d1929731 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -821,13 +821,11 @@ sub setupBootloaderBefore { detect_devices::matching_desc('GeForce.*Integrated') #- needed for fbdev driver (hack). ); - #- propose the default fb mode for kernel fb, if aurora is installed too. - my $need_fb; - foreach (qw(Aurora bootsplash)) { + #- propose the default fb mode for kernel fb, if aurora or bootsplash is installed. + my $need_fb = grep { my $p = pkgs::packageByName($o->{packages}, $_); - $p && pkgs::packageFlagInstalled($p) and $need_fb = 1; - } - + $p && pkgs::packageFlagInstalled($p); + } 'Aurora', 'bootsplash'; bootloader::suggest($o->{prefix}, $o->{bootloader}, $o->{all_hds}{hds}, $o->{fstab}, ($force_vga || $vga && $need_fb) && $o->{vga}); bootloader::suggest_floppy($o->{bootloader}) if $o->{security} <= 3 && arch() !~ /ppc/; -- cgit v1.2.1