[OE-core] [PATCH 7/7] systemd: do not pre-enable services, rely on presets
Jonas Bonn
jonas at norrbonn.se
Mon Dec 31 12:05:59 UTC 2018
At installation, systemd _both_ installs preset files for its services
and enables the services accordingly (effectively, calling 'systemctl
preset-all' on its own services). As we now rely on systemd calling
preset-all at first boot, there's no need to carry the pre-populated
/etc/systemd/system directory in the package.
This gets us a step closer to en empty /etc which is a requirement for
running a "stateless system".
---
meta/recipes-core/systemd/systemd_239.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-core/systemd/systemd_239.bb b/meta/recipes-core/systemd/systemd_239.bb
index 70e687c92e..7b4c5c56aa 100644
--- a/meta/recipes-core/systemd/systemd_239.bb
+++ b/meta/recipes-core/systemd/systemd_239.bb
@@ -298,6 +298,8 @@ do_install() {
# duplicate udevadm for postinst script
install -d ${D}${libexecdir}
ln ${D}${base_bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm
+
+ rm -rf ${D}${sysconfdir}/systemd/system
}
--
2.19.1
More information about the Openembedded-core
mailing list