Don't try to switch to a BLS config if GRUB_ENABLE_BLSCFG is already set
There's no point on executing the script if GRUB_ENABLE_BLSCFG has already been set. Currently was checking if an user explicitly set it to false to avoid enabling the BLS configuration, but it should also be avoided if was already set to true by a previous package update or during installation. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
4c3c0c390f
commit
53711828a3
@ -7,7 +7,7 @@
|
||||
Name: grub2
|
||||
Epoch: 1
|
||||
Version: 2.02
|
||||
Release: 80%{?dist}
|
||||
Release: 81%{?dist}
|
||||
Summary: Bootloader with support for Linux, Multiboot and more
|
||||
License: GPLv3+
|
||||
URL: http://www.gnu.org/software/grub/
|
||||
@ -279,7 +279,7 @@ fi
|
||||
%posttrans tools
|
||||
|
||||
if [ -f /etc/default/grub ]; then
|
||||
! grep -q '^GRUB_ENABLE_BLSCFG=false' /etc/default/grub && \
|
||||
! grep -q '^GRUB_ENABLE_BLSCFG=.*' /etc/default/grub && \
|
||||
/sbin/grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
|
||||
fi
|
||||
|
||||
@ -476,6 +476,9 @@ rm -r /boot/grub2.tmp/ || :
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon May 20 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-81
|
||||
- Don't try to switch to a BLS config if GRUB_ENABLE_BLSCFG is already set
|
||||
|
||||
* Wed May 15 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-80
|
||||
- Fix error messages wrongly being printed when executing blscfg command
|
||||
Resolves: rhbz#1699761
|
||||
|
Loading…
Reference in New Issue
Block a user