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

Uncertainty regarding kernel module and /etc/modutils/*



I am creating a package which basically contains sources that go in
/usr/src/modules for easy package creation with make-kpkg. When built,
the package's name will be suffixed with the kernel version it is
built for, so that you can have several packages installed at the
same time.

However, this causes a slight problem. The files in /etc/modutils/
and also /etc/devfs/devices.d/ will become grossly redundant, as
I will have several files containing exactly the same.

The alternate solution will be to create the wanted files in the postinst
script, and remove them from postrm if the package is the last on the
system which provides the driver. This looks better, but will however
result in the fact that no package owns the files, as far as dpkg is
concerned - not exactly what I want, either.

I can't put files without the kernel version suffix in the package either,
as it will cause dpkg to panic about overwriting other packages' files.

So, should I accept the redundancy and let dh_installmodules do its job,
or should I use the postinst/rm approach? Or the insanely clever solution
one of you are going to suggest? :-)

Regards,
-- 
Tore Anderson


-- 
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: