On 2024-07-28 11:21:01 -0400, Greg Wooledge wrote:
> On Sun, Jul 28, 2024 at 16:43:01 +0200, Vincent Lefevre wrote:
> > More or less. In the systemd case, for each file, either one chooses
> > it, i.e. one has all the current defaults, or one chooses to provide
> > a replacement under /etc, i.e. one entirely replaces the defaults by
> > one's own settings. An include mechanism would allow a finer control
> > of the settings. The sysctl.d configuration system does not allow one
> > to include a file (to get the current defaults and possibly change
> > some of them just after).
> 
> I really don't understand what you're asking for here.
> 
> There are defaults in /usr/lib/sysctl.d/*.conf (which is documented
> in sysctl.d(5) even in bookworm).  The files in /etc/sysctl.d/*.conf
> will override those defaults.
> 
>        Configuration files are read from directories in /etc/, /run/,
>        /usr/local/lib/, and /lib/, in order of precedence, as listed in the
>        SYNOPSIS section above. Files must have the ".conf" extension. Files in
>        /etc/ override files with the same name in /run/, /usr/local/lib/, and
>        /lib/. Files in /run/ override files with the same name under /usr/.
> 
> Why do you need to see the literal word "include" in some other file?
> What benefit does that give you?

Indeed, thanks to the specified ordering (though the recommendations
are not followed by Debian), an include mechanism would probably be
useless here.

But this is an issue for tmpfiles.d, because there is no way to know
whether a file added in /etc/tmpfiles.d will come after some file in
/usr/lib/tmpfiles.d (the issue is for files that could be added in
the future).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to