On 8/18/23 11:42, Martin Wilck via openSUSE Factory wrote:
In a way, yes. I suppose the file would have comments at the top, hinting how to override the settings. Actually the files contain such hints already, e.g. in /etc/systemd.journald.conf:
# Entries in this file show the compile time defaults. Local configuration # should be created by either modifying this file, or by creating "drop-ins" in # the journald.conf.d/ subdirectory. The latter is generally recommended. # Defaults can be restored by simply deleting this file and all drop-ins. # # Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
The text "by either modifying this file" would need to be adapted, and a hint would need to be added that drop-ins under /usr/lib override settings from /etc/journald.conf. Otherwise this should be fine.
Since the goal is to not install files in /etc anymore that sounds the best approach, yes.
OTOH, if people memorize "systemd-analyze cat-config", we won't need these hints any more. Will they?
No they won't indeed but I would still keep the hints for those who don't have a clue about systemd-analyze yet. Thanks.