From eedee250666ab8035b294509c4bcb84c7fc2873b Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Tue, 10 Apr 2018 15:37:31 +0200 Subject: [PATCH] Use .rpmsave as backup suffix when switching to BLS configuration By default the grub2-switch-to-blscfg script uses .bak as the suffix for saved files, but it should use .rpmsave when called from a RPM scriptlet. Signed-off-by: Javier Martinez Canillas --- grubby.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grubby.spec b/grubby.spec index 7e3fc34..ebfb91d 100644 --- a/grubby.spec +++ b/grubby.spec @@ -1,6 +1,6 @@ Name: grubby Version: 8.40 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Command line tool for updating bootloader configs License: GPLv2+ URL: https://github.com/rhinstaller/grubby @@ -59,7 +59,7 @@ make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} %postun if [ "$1" = 0 ] ; then - grub2-switch-to-blscfg &>/dev/null || : + grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || : fi %files @@ -71,6 +71,9 @@ fi %{_mandir}/man8/*.8* %changelog +* Tue Apr 10 2018 Javier Martinez Canillas - 8.40-12 +- Use .rpmsave as backup suffix when switching to BLS configuration + * Fri Apr 06 2018 Javier Martinez Canillas - 8.40-11 - Switch grub2 config to BLS configuration on %%postun