[Rpm-maint] Enforce install/erase order without adding a Requires:

Michael Schroeder mls at suse.de
Fri Nov 26 09:35:15 UTC 2010


On Fri, Nov 26, 2010 at 10:22:56AM +0200, Panu Matilainen wrote:
> Kernel initrd creation (mkinitrd, dracut) mechanisms have special needs: 
> they can have support for arbitrary number of rare, special hardware 
> packeges that shouldn't be dragged in on every installation. Yet if those 
> optional packages are installed, they should be installed before the 
> initrd generation to ensure latest versions (be it bug/security fix or 
> just an enhancement) get bundled up in the initrd on updates. Requires are 
> currently needed to ensure the ordering, which is bad. Suggests/Recommends 
> etc are not at all optimal here either as their behavior depends on 
> depsolver policy.

Oh, but in that case you ned the reverse version of Requires, 
because the kernel package cannot know all special hardware packages.
Thus something like "Enhances: kernel", but with a different
keyword.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


More information about the Rpm-maint mailing list