move comments for the hack for upgrading from grub2 < 1.99-4 so they appear in the right place

This commit is contained in:
Mads Kiilerich 2011-10-27 17:09:01 +02:00 committed by Peter Jones
parent 21d845a6c3
commit e3760090e5

View File

@ -232,11 +232,12 @@ if [ "$1" = 1 ]; then
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/grub2-dev.info.gz || : /sbin/install-info --info-dir=%{_infodir} %{_infodir}/grub2-dev.info.gz || :
fi fi
%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
# later restore them in triggerpostun. # later restore them in triggerpostun.
# https://bugzilla.redhat.com/show_bug.cgi?id=735259 # https://bugzilla.redhat.com/show_bug.cgi?id=735259
%triggerun -- grub2 < 1:1.99-4
# Back up the files before uninstalling old grub2 # Back up the files before uninstalling old grub2
mkdir -p /boot/grub2.tmp && mkdir -p /boot/grub2.tmp &&
mv -f /boot/grub2/*.mod \ mv -f /boot/grub2/*.mod \