Bugzilla – Bug 1173310
Source also files below /usr/etc/profile.d
Last modified: 2023-04-06 09:49:22 UTC
I'm currently working on the config file switch /etc --> /usr/etc (find Details on https://en.opensuse.org/openSUSE:Packaging_UsrEtc) and now I'm wondering what should be done with files below /etc/profile.d/* (no changes in aaa_base, bash yet) Thorsten Kuku wrote: Yes, this should be moved to /usr/etc/profile.d at best, as the files there are not really configuration files or files an admin should change.
Adding bugowners of aaa_base and bash to Cc.
Sure, was on my todo in the back of my mind anyways but if you can work on that even better :-) Since /etc/etc is meant to contain "distribution provided configuration files" and most if not all profile *scripts* are not actually config files at I'd probably move them somewhere below eg /usr/share though. Settings read by profile scripts such as defaults for stuff in /etc/sysconfig may be moved to /usr/etc though. Anyways, anything will be better than having that stuff in /etc. Go ahead :-)
Seem you misuderstood me. I don't plan on implementing this. ;-)
With the commit f11837b30cc9ff8d8da75724480ebe172be77991 commit 3f656fda7f0ae31ba5ad1a0b5c966d52823915a4 in aaa_base repository at least the main rc files of bash and tcsh now search for files below /usr/etc and /etc and those of /etc wins if exists. Nevertheless I giess that there will be more then those changes as it might be that some of the files below /(usr/)etc had be changes as well
Thanks a lot! Appears to be https://github.com/openSUSE/aaa_base
(In reply to Dr. Werner Fink from comment #4) > With the > > commit f11837b30cc9ff8d8da75724480ebe172be77991 > commit 3f656fda7f0ae31ba5ad1a0b5c966d52823915a4 > > in aaa_base repository at least the main rc files of bash and tcsh now > search for files below /usr/etc and /etc and those of /etc wins if exists. > Nevertheless I giess that there will be more then those changes as it might > be that some of the files below /(usr/)etc had be changes as well Looks like this is in aaa_base (factory/TW) since ------------------------------------------------------------------- Wed Jul 08 10:00:41 UTC 2020 - ro@suse.de - Update to version 84.87+git20200708.f5e90d7: * check for Packages.db and use this instead of Packages (boo#1171762) * Add also support for /usr/etc/profile.d for tcsh * Do add some support for /usr/etc/profile.d
(In reply to Dr. Werner Fink from comment #4) > in aaa_base repository at least the main rc files of bash and tcsh now > search for files below /usr/etc and /etc and those of /etc wins if exists. Thanks! > Nevertheless I giess that there will be more then those changes as it might > be that some of the files below /(usr/)etc had be changes as well You mean files in /etc/profile.d, which are coming with aaa_base, should be moved to /usr/etc/profile.d as well? I agree with that. And this bug can be closed. Files in /etc/profiles.d shipped by other packages should be moved in the appropriate packages. This move is no longer blocked by aaa_base.
OK .. fixed for now