summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-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 {