From 41ad14f0c866402ecae82f2a08e04f1f7b57b7a3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 8 Apr 2015 03:47:49 -0400 Subject: simplify: use update-grub2 --- perl-install/bootloader.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install') 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 { -- cgit v1.2.1