Only switch to BLS config for s390x / zipl
For platforms using GRUB, the switch to BLS should be done in the %post scriptlet for the grub2-tools package. So only switch to BLS for s390x. Related: rhbz#1652806 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
6abeb6fc77
commit
8213073fa4
15
grubby.spec
15
grubby.spec
@ -1,6 +1,6 @@
|
|||||||
Name: grubby
|
Name: grubby
|
||||||
Version: 8.40
|
Version: 8.40
|
||||||
Release: 28%{?dist}
|
Release: 29%{?dist}
|
||||||
Summary: Command line tool for updating bootloader configs
|
Summary: Command line tool for updating bootloader configs
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/rhinstaller/grubby
|
URL: https://github.com/rhinstaller/grubby
|
||||||
@ -84,13 +84,8 @@ sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} \
|
|||||||
%post
|
%post
|
||||||
if [ "$1" = 2 ]; then
|
if [ "$1" = 2 ]; then
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
if [[ $arch == "s390x" ]]; then
|
[[ $arch == "s390x" ]] && \
|
||||||
command=zipl-switch-to-blscfg
|
zipl-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
|
||||||
else
|
|
||||||
command=grub2-switch-to-blscfg
|
|
||||||
fi
|
|
||||||
|
|
||||||
$command --backup-suffix=.rpmsave &>/dev/null || :
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%package deprecated
|
%package deprecated
|
||||||
@ -132,6 +127,10 @@ current boot environment.
|
|||||||
%{_mandir}/man8/*.8*
|
%{_mandir}/man8/*.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 11 2019 Javier Martinez Canillas <javierm@redhat.com> - 8.40-29
|
||||||
|
- Only switch to BLS config for s390x / zipl
|
||||||
|
Related: rhbz#1652806
|
||||||
|
|
||||||
* Fri Mar 01 2019 Javier Martinez Canillas <javierm@redhat.com> - 8.40-28
|
* Fri Mar 01 2019 Javier Martinez Canillas <javierm@redhat.com> - 8.40-28
|
||||||
- grubby-bls: make --update-kernel ALL to update kernelopts var in grubenv
|
- grubby-bls: make --update-kernel ALL to update kernelopts var in grubenv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user