Re: overriding udev rules
olivier sallou <firstname.lastname@example.org> writes:
> I need for a package to override some udev standard rules.
> If I put an identical rule name in /etc/udev/rules.d, I know it overrides
> the one in /lib/udev/rules.d
> However, lintian raises an error if I put an udev rule in /etc instead of
> And if I try to put the file in /lib, it fails at install because the file
> is owned by udev package.
> This particular package is for use in virtual machines creation where
> package removes default network persistence.
> Is there an other way to override udev rules in package or should I simply
> override the lintian error message?
I think you should divert (see man dpkg-divert) the original file in
/lib and install a new file in it's place. This way the /etc override
mechanism is still usable by the admin if needed.