]> code.ossystems Code Review - openembedded-core.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>
Thu, 2 May 2019 21:20:24 +0000 (22:20 +0100)
commit154abbc3296eded11d2bbe3e102470b6986d42cd
tree09c25188f05fc1e29cd6f485c33a34f86a47fdba
parent3150253898babce70333376d22090b56b4a70bfb
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.

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