]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: ensure init.scope is realized after drop-ins have been loaded
authorLuca Boccassi <bluca@debian.org>
Fri, 20 Jan 2023 23:00:38 +0000 (23:00 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Jan 2023 20:40:54 +0000 (21:40 +0100)
commit020b2e41ea776cff73392da8084a0725b590d245
tree3a77af1420cdd8dca15ec49f5123229415f668c2
parent4453ebe4db0511d25bed1040930ea6430c1bed91
core: ensure init.scope is realized after drop-ins have been loaded

If we add a drop-in for init.scope (e.g.: to set some memory limit),
it will be loaded long after the cgroup has already been realized.
Do it again when creating the special unit.
src/core/cgroup.c
src/core/cgroup.h
src/core/scope.c
test/TEST-55-OOMD/test.sh
test/units/testsuite-55.sh