Re: kernel posttrans and preun hooks for other packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Fedora-kernel-list mailing list
Fedora-kernel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux