summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-02-27 06:40:01 +0000
committerThierry Vignaud <tv@mageia.org>2013-02-27 06:40:01 +0000
commit47f3c781cf4bcdcedb0c76f101dcb41d38a86a20 (patch)
tree55baecbd61af4f4c565522e7e3e2cdacacf23e41 /perl-install/bootloader.pm
parent5b76050f1adf01c29ad5b08cf959614cbf76ec92 (diff)
downloaddrakx-47f3c781cf4bcdcedb0c76f101dcb41d38a86a20.tar
drakx-47f3c781cf4bcdcedb0c76f101dcb41d38a86a20.tar.gz
drakx-47f3c781cf4bcdcedb0c76f101dcb41d38a86a20.tar.bz2
drakx-47f3c781cf4bcdcedb0c76f101dcb41d38a86a20.tar.xz
drakx-47f3c781cf4bcdcedb0c76f101dcb41d38a86a20.zip
(install_grub2) always generate grub2 menu (like for other bootloaders)
thus only one place where we actually issue the proper command
Diffstat (limited to 'perl-install/bootloader.pm')
-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} });
}