kernel posttrans and preun hooks for other packages

Peter Jones pjones at redhat.com
Mon Feb 18 19:44:54 UTC 2008


Peter Jones wrote:
> (Adding Panu to the Cc)
> 
> Jason L Tibbitts III wrote:
>>>>>>> "MD" == Matt Domsch <Matt_Domsch at dell.com> writes:
>>
>> MD> [...] there's no ordering guarantee between the two such that we
>> MD> know kernel-devel is always installed before kernel.
>>
>> It should be possible to have kernel-devel have Requires(post): kernel
>> or use some other type of fine-grained dependency to guarantee some
>> sort of ordering.
> 
> That doesn't guarantee the right thing -- it's inverted.  It makes it so 
> that before kernel-devel's %post runs, kernel must be installed.  What 
> Matt needs is a guarantee that kernel-devel is installed (if it will be 
> installed at all) before kernel's %post runs.  Right now the only way to 
> do that is for kernel to require(post): kernel-devel, which is obviously 
> not something we want to do.

Actually, I guess that's not the only way -- there is %posttrans .  It 
has some obvious downsides though, not least of which being if the 
transaction fails it'll never get run, it doesn't show up in any 
progress information, and AFAIK it's generally just not well tested.

-- 
   Peter




More information about the Fedora-kernel-list mailing list