What do I need to do to write to /etc in an rpm?

Ralf Corsepius rc040203 at freenet.de
Tue Nov 8 09:06:53 UTC 2005


On Tue, 2005-11-08 at 08:29 +0000, Paul wrote:
> Hi,
> 
> I have a kernel module which needs to be able to write files
> to /etc/somewhere. What do I need to put into my .spec file to this?
Do you mean to install a config file to /etc/ when installing the rpm?

Just copy the files to %{_sysconfdir} or a subdirectory from inside of
the spec.

Or do you mean, you want this kernel module to write into /etc/ at
run-time? 

Ralf





More information about the fedora-extras-list mailing list