puppet-systemd icon indicating copy to clipboard operation
puppet-systemd copied to clipboard

Manage /etc/udev/rules.d directory

Open bschonec opened this issue 3 years ago • 2 comments

Should the /etc/udev/rules.d directory be purged of non-managed files?

bschonec avatar Jul 05 '22 18:07 bschonec

It could have an option, but it feels too invasive to me to do so by default. For example, on my Fedora 36 system:

$ ls /etc/udev/rules.d/
70-persistent-ipoib.rules
$ rpm -qf /etc/udev/rules.d/70-persistent-ipoib.rules 
rdma-core-39.0-1.fc36.x86_64

Now the particular file doesn't contain anything and you could argue it should be in /usr/share/doc as an example, but there may be more.

ekohl avatar Jul 06 '22 13:07 ekohl

Managing yes, but purging by default should be configurable set to false by default.

saz avatar Sep 28 '22 16:09 saz

I would like to see this feature too but agree is should be false by default.

jhoblitt avatar Apr 25 '23 21:04 jhoblitt

The only place /etc/udev/rules.d is defined is in https://github.com/voxpupuli/puppet-systemd/blob/master/manifests/udev/rule.pp#L28. So there is no global static setting for the directory :/

TheMeier avatar Mar 09 '24 13:03 TheMeier