[elrepo-devel] how to require a kernel module

Farkas Levente lfarkas at lfarkas.org
Wed Feb 17 08:32:23 EST 2010


hi,
now we've a lot's of kernel module and we can build our own on a nearly 
standardized way for rhel/centos. but i now run into a problem how to 
add a require kmod line into another package's spec file. it seems to 
very easy, if i've got package x.spec:
Requires: y-kmod
but now comes whether y-kmod or kmod-y (tha package name or the virtual 
provides)? and if we go a bit further and have a i386 machine with 4gb 
ram which install by default kernel-PAE and like to install x into that 
machine i wish to pull (yum pull) kmod-x-PAE and not kmod-x since it 
can't be used on a PAE kernel. what's more if x pull kmod-y that also 
pull the none PAE kernel too which is also not a good think.
so what's the good and proper solution to require y kernel module into 
package x (in a way that works with yum on all kernel variant)?
anybody has any solution to this?

-- 
   Levente                               "Si vis pacem para bellum!"



More information about the elrepo-devel mailing list