]> git.pld-linux.org Git - packages/grub2.git/commitdiff
Upgrade trigger is needed only for old grub2
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Mon, 29 Oct 2012 09:52:35 +0000 (10:52 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Mon, 29 Oct 2012 09:58:15 +0000 (10:58 +0100)
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

index a74d91766292ed4c3ec5268c61e219bbd762d974..5b40053ae462093a436cd0acf8ef2742c0a83759 100644 (file)
@@ -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
This page took 0.127636 seconds and 4 git commands to generate.