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

Panu Matilainen pmatilai at laiskiainen.org
Fri Nov 26 09:53:27 UTC 2010


On Fri, 26 Nov 2010, Michael Schroeder wrote:

> 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.

At least in Fedora, the dependencies for initrd needs are in dracut, which 
in turn knows which extra packages it currently supports. But yes, there 
should be a reverse variant of the ordering syntax too.

 	- Panu -


More information about the Rpm-maint mailing list