kernel posttrans and preun hooks for other packages

Matt Domsch Matt_Domsch at dell.com
Mon Feb 18 16:01:02 UTC 2008


On Mon, Feb 18, 2008 at 09:49:44AM -0600, Matt Domsch wrote:
> On Mon, Feb 18, 2008 at 09:36:49AM -0500, Jeremy Katz wrote:
> > On Sun, 2008-02-17 at 20:16 -0600, Matt Domsch wrote:
> > > is there any reason why we can't just move %post to %posttrans?
> > 
> > %posttrans breaks the way we do bootloader config updating as it leaves
> > around no entries in the bootloader config after all the %preuns have
> > been processed.  I looked at this a few months ago and thought we talked
> > about it here, but it might have just been mail between davej and myself
> 
> ok, new-kernel-pkg grows a --rpmposttrans mode then to call these
> hooks, and we add a %posttrans to each kernel RPM.

and we need /sbin/installkernel to call it too.  That's not called
from within an RPM, but is called when the user manally builds a
kernel.org kernel.

-- 
Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux


--- installkernel.orig	2008-02-18 09:58:14.000000000 -0600
+++ installkernel	2008-02-18 09:58:42.000000000 -0600
@@ -79,4 +79,5 @@ ln -fs ${RELATIVE_PATH}$INSTALL_PATH/Sys
 
 if [ -n "$cfgLoader" -a -x /sbin/new-kernel-pkg ]; then
 	/sbin/new-kernel-pkg --mkinitrd --depmod --install $KERNEL_VERSION
+	/sbin/new-kernel-pkg --rpmposttrans $KERNEL_VERSION
 fi




More information about the Fedora-kernel-list mailing list