Bugzilla – Bug 1216740
nfs-client: move config to /usr
Last modified: 2024-04-22 23:55:03 UTC
nfs-client ships several (sample) config files in /etc. Those should be removed nowadays. Just package the samples as %doc. The relevant ones should be shipped in /usr (e.g /usr/etc) instead. Bonus points for also supporting drop-ins. See also tracker bug 1208319
I don't fully understand. Do you want these file to not appear in /etc/ at all? i.e you want the code changed to look in /usr/etc??? Or should nfs-client add a symlink e.g from /etc/nfs.conf to /usr/etc/nfs.conf Is there some documentation explaining how this all *should* work?
I found https://en.opensuse.org/openSUSE:Packaging_UsrEtc it all makes sense now. I posted a patch upstream to support reading from /usr/etc first. The code already handles drop-ins. I'll hopefully submit a new nfs-utils next week.
I've submitted a new nfs-utils to Base:System which I think does the right thing. Config files are no in /usr/etc, though putting files in /etc also works. I've created the foo.conf.d directories in /etc as well as in /usr/etc. Could you have a look and make sure it now matches your requirements? Thanks.
lgtm. You may want to add some scripting to restored backed up config files as described in https://en.opensuse.org/openSUSE:Packaging_UsrEtc#Moving_of_configuration_files Unfortunately rpm itself doesn't help with that.
This is an autogenerated message for OBS integration: This bug (1216740) was mentioned in https://build.opensuse.org/request/show/1169581 Factory / nfs-utils
This is an autogenerated message for OBS integration: This bug (1216740) was mentioned in https://build.opensuse.org/request/show/1169773 Factory / nfs-utils