]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: evaluate presets after generators have run (#6526)
authorLuca Bruno <luca.bruno@coreos.com>
Sun, 6 Aug 2017 13:24:24 +0000 (13:24 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Aug 2017 13:24:24 +0000 (09:24 -0400)
commit28dd66ecfce743b1ea9046c7bb501e0fcaeff724
tree52016f2f1cb364b7ab448a6f4bbd9b9679ce279d
parent21771f338d268e06dc9a10b9b08b14ff8217d4be
core: evaluate presets after generators have run (#6526)

This commit moves the first-boot system preset-settings evaluation out
of main and into the manager startup logic itself. Notably, it reverses
the order between generators and presets evaluation, so that any changes
performed by first-boot generators are taken into the account by presets
logic.

After this change, units created by a generator can be enabled as part
of a preset.
src/core/main.c
src/core/manager.c