Switch grub2 config to BLS configuration on %postun
When grubby is not installed, the GRUB 2 configuration has to be changed to use the BLS configuration files. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
8a91c9f29b
commit
c8349748f2
11
grubby.spec
11
grubby.spec
@ -1,6 +1,6 @@
|
|||||||
Name: grubby
|
Name: grubby
|
||||||
Version: 8.40
|
Version: 8.40
|
||||||
Release: 10%{?dist}
|
Release: 11%{?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
|
||||||
@ -21,6 +21,7 @@ BuildRequires: util-linux-ng
|
|||||||
%ifarch aarch64 i686 x86_64 %{power64}
|
%ifarch aarch64 i686 x86_64 %{power64}
|
||||||
BuildRequires: grub2-tools-minimal
|
BuildRequires: grub2-tools-minimal
|
||||||
Requires: grub2-tools-minimal
|
Requires: grub2-tools-minimal
|
||||||
|
Requires: grub2-tools
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
Requires: s390utils-base
|
Requires: s390utils-base
|
||||||
@ -56,6 +57,11 @@ make test
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
|
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
grub2-switch-to-blscfg &>/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -65,6 +71,9 @@ make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
|
|||||||
%{_mandir}/man8/*.8*
|
%{_mandir}/man8/*.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 06 2018 Javier Martinez Canillas <javierm@redhat.com> - 8.40-11
|
||||||
|
- Switch grub2 config to BLS configuration on %%postun
|
||||||
|
|
||||||
* Sat Mar 03 2018 Nathaniel McCallum <npmccallum@redhat.com> - 8.40-10
|
* Sat Mar 03 2018 Nathaniel McCallum <npmccallum@redhat.com> - 8.40-10
|
||||||
- Add support for /boot on btrfs subvolumes
|
- Add support for /boot on btrfs subvolumes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user