]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
systemd: create preset files instead of installing in image
authorJonas Bonn <jonas@norrbonn.se>
Thu, 2 May 2019 21:09:42 +0000 (22:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 May 2019 05:11:57 +0000 (06:11 +0100)
commitbc2ca0ea7e917d1e6b31d905eca77550a2907610
tree2eb8efa240aebdb454ba7e46db1fc956545deb8c
parent92d9c493c47975c94cb159ee87574710bd0c1014
systemd: create preset files instead of installing in image

At first boot, systemd will create the /etc/systemd/system directory
from service preset files.  As such, for a normal, writable /etc
(writable rootfs), there is no need to set up this directory at image
creation time.

This patch changes the systemd machinery to create preset files and to
rely on systemd to do the service enablement.

This breaks the read-only-rootfs case; there's a fix for this in a
follow-up patch.

(From OE-Core rev: 154abbc3296eded11d2bbe3e102470b6986d42cd)

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/systemd.bbclass