summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-24 15:49:14 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-24 17:49:08 +0200
commit7bb01fb038e0a882e755b963110bda381336b748 (patch)
tree4a46732ad4f6e84872d5011e2ffceedf021ff805 /perl-install/bootloader.pm
parent302a992cc5fed524f62416d74308ec400343884a (diff)
downloaddrakx-7bb01fb038e0a882e755b963110bda381336b748.tar
drakx-7bb01fb038e0a882e755b963110bda381336b748.tar.gz
drakx-7bb01fb038e0a882e755b963110bda381336b748.tar.bz2
drakx-7bb01fb038e0a882e755b963110bda381336b748.tar.xz
drakx-7bb01fb038e0a882e755b963110bda381336b748.zip
do not alter /etc/default/grub on kernel updates
only when running drakboot (mga#18783)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index bd615c02e..61d69627e 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1909,14 +1909,11 @@ sub write_grub2 {
my ($bootloader, $o_all_hds, $o_backup_extension) = @_;
my $error;
- write_grub2_sysconfig($bootloader, $o_all_hds, $o_backup_extension);
-
my $f1 = "$::prefix/boot/grub2/grub.cfg";
renamef($f1, $f1 . ($o_backup_extension || '.old'));
run_program::rooted($::prefix, 'update-grub2', '2>', \$error) or die "update-grub2 failed: $error";
log::l("update-grub2 logs: $error");
- write_grub2_default_entry($bootloader, $o_all_hds, $o_backup_extension);
check_enough_space();
}
@@ -2135,7 +2132,9 @@ sub restore_previous_MBR_bootloader {
sub install_grub2 {
my ($bootloader, $all_hds) = @_;
+ write_grub2_sysconfig($bootloader, $all_hds);
write_grub2($bootloader, $all_hds);
+ write_grub2_default_entry($bootloader, $all_hds);
write_grub2_install_sh($bootloader, '.old');
install_raw_grub2();
}