Bug 1216740 - nfs-client: move config to /usr
Summary: nfs-client: move config to /usr
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Neil Brown
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1216724
  Show dependency treegraph
 
Reported: 2023-10-31 11:10 UTC by Ludwig Nussel
Modified: 2024-04-22 23:55 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2023-10-31 11:10:45 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
Comment 2 Neil Brown 2023-11-20 01:13:30 UTC
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?
Comment 3 Neil Brown 2023-11-23 21:18:06 UTC
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.
Comment 4 Neil Brown 2023-12-08 03:35:17 UTC
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.
Comment 5 Ludwig Nussel 2023-12-14 09:34:54 UTC
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.
Comment 6 OBSbugzilla Bot 2024-04-22 03:35:04 UTC
This is an autogenerated message for OBS integration:
This bug (1216740) was mentioned in
https://build.opensuse.org/request/show/1169581 Factory / nfs-utils
Comment 7 OBSbugzilla Bot 2024-04-22 23:55:03 UTC
This is an autogenerated message for OBS integration:
This bug (1216740) was mentioned in
https://build.opensuse.org/request/show/1169773 Factory / nfs-utils