From: Jörg Sommer <[email protected]> If *volatile-binds* gets removed from RDEPENDS, the /srv directory is not part of the image, and tmpfiles tries to create it on boot, but fails on a read-only rootfs:
systemd-tmpfiles: /srv does not exist and cannot be created as the file system is read-only. Signed-off-by: Jörg Sommer <[email protected]> --- meta/recipes-core/systemd/systemd_259.5.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_259.5.bb b/meta/recipes-core/systemd/systemd_259.5.bb index 0fbfcaba42..27722f97bb 100644 --- a/meta/recipes-core/systemd/systemd_259.5.bb +++ b/meta/recipes-core/systemd/systemd_259.5.bb @@ -266,7 +266,7 @@ do_install() { sed -i -e 's#/root#${ROOT_HOME}#g' ${D}${exec_prefix}/lib/sysusers.d/basic.conf fi fi - install -d ${D}/${base_sbindir} + install -d ${D}${base_sbindir} ${D}${servicedir} if ! ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'true', 'false', d)}; then # Remove the serial-getty generator and instead use explicit services @@ -719,6 +719,7 @@ FILES:${PN} = " ${base_bindir}/* \ ${exec_prefix}/lib/environment.d \ ${exec_prefix}/lib/nvpcr \ ${exec_prefix}/lib/pcrlock.d \ + ${servicedir} \ ${localstatedir} \ ${nonarch_libdir}/modprobe.d/systemd.conf \ ${nonarch_libdir}/modprobe.d/README \ -- 2.53.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240385): https://lists.openembedded.org/g/openembedded-core/message/240385 Mute This Topic: https://lists.openembedded.org/mt/120155848/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
