[packages/grub2] Upgrade trigger is needed only for old grub2

jajcus jajcus at pld-linux.org
Mon Oct 29 10:59:05 CET 2012


commit 287a39cc6541eba8ff866f6bb3338fea5d065cca
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Oct 29 10:52:35 2012 +0100

    Upgrade trigger is needed only for old grub2
    
    Older PLD grub2 packages contained the grub modules in /boot/grub.
    After upgrade the installed bootloader would not match the modules
    in /boot/grub and fail. When upgrading those old packages to the
    new >=2.00 packages the modules in /boot/grub would be completly
    missing, causing the same problem.
    
    So the trigger must stay for upgrade from packages <2.00, but is not
    needed for future upgrades.

 grub2.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/grub2.spec b/grub2.spec
index a74d917..5b40053 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -359,8 +359,10 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p %{_sbindir}/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
-%triggerpostun -- %{name} < %{version}-0
+%triggerpostun -- %{name} < 2.00-0.1
 # Note this trigger on version upgrade
+# needed only for upgrade from old grub2 packages
+# which contained modules in /boot/grub
 # don't do anything on --downgrade
 if [ $1 -le 1 ]; then
 	exit 0
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grub2.git/commitdiff/81f92761ca0b51f148874b687ed721b02594acdc



More information about the pld-cvs-commit mailing list