packages: memtest86+/memtest86+.spec - add grubby hook

glen glen at pld-linux.org
Mon Feb 14 18:04:57 CET 2011


Author: glen                         Date: Mon Feb 14 17:04:57 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add grubby hook

---- Files affected:
packages/memtest86+:
   memtest86+.spec (1.33 -> 1.34) 

---- Diffs:

================================================================
Index: packages/memtest86+/memtest86+.spec
diff -u packages/memtest86+/memtest86+.spec:1.33 packages/memtest86+/memtest86+.spec:1.34
--- packages/memtest86+/memtest86+.spec:1.33	Mon Feb 14 12:35:23 2011
+++ packages/memtest86+/memtest86+.spec	Mon Feb 14 18:04:52 2011
@@ -100,9 +100,15 @@
 rm -rf $RPM_BUILD_ROOT
 
 %postun -n rc-boot-image-memtest86+
+if [ -x /sbin/grubby ]; then
+	/sbin/grubby --add-kernel=/boot/%{name} --title="Memtest86+ %{version}" --remove-kernel="TITLE=Memtest86+ %{version}"
+fi
 /sbin/rc-boot 1>&2 || :
 
 %post -n rc-boot-image-memtest86+
+if [ "$1" = 0 ] && [ -x /sbin/grubby ]; then
+	/sbin/grubby --remove-kernel=/boot/%{name}
+fi
 /sbin/rc-boot 1>&2 || :
 
 %files
@@ -120,6 +126,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.34  2011/02/14 17:04:52  glen
+- add grubby hook
+
 Revision 1.33  2011/02/14 11:35:23  glen
 - up to 4.20
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/memtest86+/memtest86+.spec?r1=1.33&r2=1.34&f=u



More information about the pld-cvs-commit mailing list