summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index d912a183f..ccea86a63 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1977,12 +1977,9 @@ sub restore_previous_MBR_bootloader {
}
sub install_grub2 {
- my ($bootloader, $_all_hds) = @_;
+ my ($bootloader, $all_hds) = @_;
my $error;
- my $grub2_cfg = "/boot/grub2/grub.cfg";
- if (!-s "$::prefix/$grub2_cfg") {
- run_program::rooted($::prefix, 'grub2-mkconfig', '2>', \$error, '-o', $grub2_cfg) or die "grub2-mkconfig failed: $error";
- }
+ write_grub2($bootloader, $all_hds);
run_program::rooted($::prefix, 'grub2-install', '2>', \$error, $bootloader->{boot}) or die "grub2-install failed: $error";
setVarsInSh("$::prefix/boot/grub2/drakboot.conf", { boot => $bootloader->{boot} });
}