mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
Switch to BLS in tools package %post scriptlet
The switch to a BLS configuration was made before in the grubby package %post scriptlet, but this is wrong since it means that a not up-do-date grub2-switch-to-blscfg script could be used to do the switch. Resolves: rhbz#1652806 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
b9750a4853
commit
c31e801897
1 changed files with 7 additions and 0 deletions
|
@ -278,6 +278,13 @@ elif [ -f /etc/grub.d/01_users ] && \
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%post tools
|
||||||
|
|
||||||
|
if [ "$1" = 2 ]; then
|
||||||
|
! grep -q '^GRUB_ENABLE_BLSCFG=false' /etc/default/grub && \
|
||||||
|
/sbin/grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%triggerun -- grub2 < 1:1.99-4
|
%triggerun -- grub2 < 1:1.99-4
|
||||||
# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades
|
# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades
|
||||||
# from the affected grub2 packages, we first back up the files in triggerun and
|
# from the affected grub2 packages, we first back up the files in triggerun and
|
||||||
|
|
Loading…
Reference in a new issue