summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-04-08 03:47:49 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-04-09 06:24:59 -0400
commit41ad14f0c866402ecae82f2a08e04f1f7b57b7a3 (patch)
tree4856d867c01ff034e9688be88460b05b62d1961c /perl-install/bootloader.pm
parentd05d7d5db81a8cce3d10ea084f0f860a82526991 (diff)
downloaddrakx-41ad14f0c866402ecae82f2a08e04f1f7b57b7a3.tar
drakx-41ad14f0c866402ecae82f2a08e04f1f7b57b7a3.tar.gz
drakx-41ad14f0c866402ecae82f2a08e04f1f7b57b7a3.tar.bz2
drakx-41ad14f0c866402ecae82f2a08e04f1f7b57b7a3.tar.xz
drakx-41ad14f0c866402ecae82f2a08e04f1f7b57b7a3.zip
simplify: use update-grub2
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index dad8719be..adb64c963 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1795,8 +1795,7 @@ sub write_grub2 {
$conf{GRUB_TIMEOUT} = $bootloader->{timeout};
setVarsInSh($f, \%conf);
- my $grub2_cfg = '/boot/grub2/grub.cfg';
- run_program::rooted($::prefix, 'grub2-mkconfig', '2>', \$error, '-o', $grub2_cfg) or die "grub2-mkconfig failed: $error";
+ run_program::rooted($::prefix, 'update-grub2', '2>', \$error) or die "update-grub2 failed: $error";
# set default entry:
eval {