packages: grub2/grub2.spec - grub needs to be reinstalled when upgraded for...

glen glen at pld-linux.org
Sun Feb 20 15:54:56 CET 2011


Author: glen                         Date: Sun Feb 20 14:54:56 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- grub needs to be reinstalled when upgraded for new version.
  symbol error this time, usually it just can't load default menu
  this is best i could think of, feel free to improve

---- Files affected:
packages/grub2:
   grub2.spec (1.89 -> 1.90) 

---- Diffs:

================================================================
Index: packages/grub2/grub2.spec
diff -u packages/grub2/grub2.spec:1.89 packages/grub2/grub2.spec:1.90
--- packages/grub2/grub2.spec:1.89	Fri Feb  4 09:08:17 2011
+++ packages/grub2/grub2.spec	Sun Feb 20 15:54:51 2011
@@ -32,7 +32,7 @@
 Summary(pt_BR.UTF-8):	Gerenciador de inicialização GRUB2
 Name:		grub2
 Version:	1.98
-Release:	0.4
+Release:	0.5
 License:	GPL v2
 Group:		Base
 Source0:	http://alpha.gnu.org/gnu/grub/grub-%{version}.tar.gz
@@ -269,6 +269,15 @@
 %postun -p %{_sbindir}/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
+# Note this on version upgrade
+%triggerpostun -- %{name} < %{version}-0
+# don't do anything on --downgrade
+if [ $1 -le 1 ]; then
+	exit 0
+fi
+echo "Grub was upgraded, trying to setup it to boot sector"
+/sbin/grub-install '(hd0)' || :
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS TODO
@@ -369,6 +378,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.90  2011/02/20 14:54:51  glen
+- grub needs to be reinstalled when upgraded for new version.
+
+  symbol error this time, usually it just can't load default menu
+  this is best i could think of, feel free to improve
+
 Revision 1.89  2011/02/04 08:08:17  uzsolt
 - suggests cdrkit-mkisofs (grub-mkrescue needs 'genisoimage')
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/grub2/grub2.spec?r1=1.89&r2=1.90&f=u



More information about the pld-cvs-commit mailing list