summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-06 11:15:19 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-06 11:16:23 +0200
commitcca8b7433a597970d1a463be377a3d9439a1b1cd (patch)
treeada8b766bd95fc8120981db5bc502e5029221fb0 /perl-install/bootloader.pm
parent8847eda6f7f8aaad07931290f1a37a5e44f7a426 (diff)
downloaddrakx-cca8b7433a597970d1a463be377a3d9439a1b1cd.tar
drakx-cca8b7433a597970d1a463be377a3d9439a1b1cd.tar.gz
drakx-cca8b7433a597970d1a463be377a3d9439a1b1cd.tar.bz2
drakx-cca8b7433a597970d1a463be377a3d9439a1b1cd.tar.xz
drakx-cca8b7433a597970d1a463be377a3d9439a1b1cd.zip
grub2: only overwrite install.sh when installing
And only when actually installing boot loader, not when updating grub2 menu list (mga#17455)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index b6f9fcff1..a70c51f9a 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1835,7 +1835,6 @@ sub write_grub2 {
log::l("error while running grub2-set-default: $err");
}
check_enough_space();
- write_grub2_install_sh($bootloader, $o_backup_extension);
}
sub get_grub2_install_sh() {
@@ -2049,6 +2048,7 @@ sub restore_previous_MBR_bootloader {
sub install_grub2 {
my ($bootloader, $all_hds) = @_;
write_grub2($bootloader, $all_hds);
+ write_grub2_install_sh($bootloader, $o_backup_extension);
install_raw_grub2();
}