[Glibc-bsd-commits] r3140 - trunk/kfreebsd-7/debian

Aurelien Jarno aurel32 at alioth.debian.org
Fri Aug 6 05:04:26 UTC 2010


Author: aurel32
Date: 2010-08-06 05:04:22 +0000 (Fri, 06 Aug 2010)
New Revision: 3140

Modified:
   trunk/kfreebsd-7/debian/changelog
   trunk/kfreebsd-7/debian/kfreebsd-image.postinst.in
   trunk/kfreebsd-7/debian/kfreebsd-image.postrm.in
Log:
  * Call postinst/postrm hooks as defined by the "Policy for Linux kernel, 
    initramfs, boot loader update process".



Modified: trunk/kfreebsd-7/debian/changelog
===================================================================
--- trunk/kfreebsd-7/debian/changelog	2010-08-06 04:58:44 UTC (rev 3139)
+++ trunk/kfreebsd-7/debian/changelog	2010-08-06 05:04:22 UTC (rev 3140)
@@ -1,3 +1,10 @@
+kfreebsd-7 (7.3-7) unstable; urgency=high
+
+  * Call postinst/postrm hooks as defined by the "Policy for Linux kernel, 
+    initramfs, boot loader update process".
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Fri, 06 Aug 2010 07:04:00 +0200
+
 kfreebsd-7 (7.3-6) unstable; urgency=medium
 
   * Disable -fstack-protector for modules, now that freebsd-buildutils
@@ -2,2 +9,4 @@
     enable it by default. Closes: #587629.
+  * Call postinst/postrm hooks as defined by the "Policy for Linux kernel, 
+    initramfs, boot loader update process".
 

Modified: trunk/kfreebsd-7/debian/kfreebsd-image.postinst.in
===================================================================
--- trunk/kfreebsd-7/debian/kfreebsd-image.postinst.in	2010-08-06 04:58:44 UTC (rev 3139)
+++ trunk/kfreebsd-7/debian/kfreebsd-image.postinst.in	2010-08-06 05:04:22 UTC (rev 3140)
@@ -55,14 +55,22 @@
             fi
         fi
     
-        # Run postinst hook if defined
+        # Run /etc/kernel-img.cnf postinst hook if defined
         postinst_hook=$(sed '/^\s*postinst_hook/!d;s/.*=\s*//' $KERNEL_IMG_CONF 2>/dev/null || true)
         if [ -n "$postinst_hook" ] ; then
             echo "Running postinst hook script $postinst_hook." 1>&2 
             $postinst_hook "$VERSION" "/boot/kfreebsd-$RELEASE.gz"
         fi
+
+        # Run /etc/kernel/postinst.d/ hooks if they exists
+        if [ -d "/etc/kernel/postinst.d" ] ; then
+	    DEB_MAINT_PARAMS=$@ \
+                run-parts --verbose --exit-on-error \
+                    --arg=$RELEASE \
+                    --arg=/boot/kfreebsd-$RELEASE.gz /etc/kernel/postinst.d
+        fi
     ;;
-    
+   
     abort-upgrade|abort-remove|abort-deconfigure)
     ;;
 

Modified: trunk/kfreebsd-7/debian/kfreebsd-image.postrm.in
===================================================================
--- trunk/kfreebsd-7/debian/kfreebsd-image.postrm.in	2010-08-06 04:58:44 UTC (rev 3139)
+++ trunk/kfreebsd-7/debian/kfreebsd-image.postrm.in	2010-08-06 05:04:22 UTC (rev 3140)
@@ -25,12 +25,20 @@
 
 case "$1" in
     remove)
-        # Run postrm hook if defined
+        # Run /etc/kernel-img.conf postrm hook if defined
         postrm_hook=$(sed '/^\s*postrm_hook/!d;s/.*=\s*//' $KERNEL_IMG_CONF 2>/dev/null || true)
         if [ -n "$postrm_hook" ] ; then
             echo "Running postrm hook script $postrm_hook." 1>&2 
             $postrm_hook "$VERSION" "/boot/kfreebsd-$RELEASE.gz"
         fi
+
+        # Run /etc/kernel/postrm.d/ hooks if they exists
+        if [ -d "/etc/kernel/postrm.d" ] ; then
+	    DEB_MAINT_PARAMS=$@ \
+                run-parts --verbose --exit-on-error \
+                    --arg=$RELEASE \
+                    --arg=/boot/kfreebsd-$RELEASE.gz /etc/kernel/postrm.d
+        fi
     ;;
     
     purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)




More information about the Glibc-bsd-commits mailing list