diff options
-rw-r--r-- | perl-install/bootloader.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index a70c51f9a..faea83af0 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -2154,9 +2154,10 @@ sub ensure_pkg_is_installed { my $main_method = main_method($bootloader->{method}); if (member($main_method, qw(grub grub2 lilo))) { $do_pkgs->ensure_binary_is_installed($pkg{$main_method} || $main_method, $h{$main_method} || $main_method, 1) or return 0; - if (my $pkg = $suppl{$bootloader->{method}}) { - $do_pkgs->ensure_is_installed(@$pkg, 1) or return 0; - } + } + # Install gfx theme if needed: + if (my $pkg = $suppl{$bootloader->{method}}) { + $do_pkgs->ensure_is_installed(@$pkg, 1) or return 0; } 1; } |