[systemd-devel] [RFC] Preset Files

Kay Sievers kay.sievers at vrfy.org
Mon Jul 11 08:33:19 PDT 2011


On Mon, Jul 11, 2011 at 17:09, Andreas Jaeger <aj at suse.com> wrote:
> On Tuesday, July 05, 2011 21:21:03 Lennart Poettering wrote:
>> - If an admin wants to manually change "enable-by-default" to
>>   "disable-by-default" (or vice versa) he could just drop his own file
>>   with "disable *" (or "enable *") into /etc/systemd/system.preset/ and
>>   override the vendor/spin settings.
>
> So, how is this handled? As soon as I put one file in
> /etc/systemd/system.preset, is then everything in /lib/systemd/system.preset/
> ignored? Or is there some kind of merge happening?

As usual, files are all sorted lexically by filename not by path, and
are read in order.

Files in /etc with the same name in /lib completely overwrite files in
/lib, but only files with the same name, all other files are still
read from /lib.

Packages should drop files in /lib, _never_ in /etc. /etc is reserved
for local administration only. The 'admin-overwrites' in /etc can
overwrite/disable individual files in /lib.

Kay


More information about the systemd-devel mailing list