summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm10
1 files changed, 4 insertions, 6 deletions
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/;