Re: overriding udev rules
On 08/20/2013 07:02 PM, olivier sallou wrote:
> I am packaging a package for OpenNebula that is to be installed on
> virtual machine images.
> It does many setup at startup.
> Among other things, in upstream packages, it replaces 2 udev rules:
> 75-cd-aliases-generator.rules and 75-persistent-net-generator.rules.
> The new rules does nothing, it just expects to skip the existing one.
> I did not know that udev skipped (at least) persistent-net in virtual
> machines so I did not try without those replacement rules (how does it
> know it is a virtual machine?).
I'd be happy to find a correct and clean way to do this, because I also
need to do it, and it seems to be a fairly common use case. I currently
only delete the 75-persistent-net-generator.rules file (which I know is
the wrong way to do it as it wont survive upgrades, though I currently
don't know how to do it cleanly, so I have fallen back to that).
It would be really nice to have a switch somewhere in /etc for this.
Maybe upstream could work that out, so that we don't have to hack and
hack again? I'm sure I'm not the only one to think that dpkg-divert
over-engineering something that should be fixed upstream.