diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-06 11:15:19 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-06 11:16:23 +0200 |
commit | cca8b7433a597970d1a463be377a3d9439a1b1cd (patch) | |
tree | ada8b766bd95fc8120981db5bc502e5029221fb0 /perl-install/bootloader.pm | |
parent | 8847eda6f7f8aaad07931290f1a37a5e44f7a426 (diff) | |
download | drakx-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.pm | 2 |
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(); } |