diff mbox series

[4/4] systemd: Ship /srv with the package

Message ID f5a84b83c1d675a4aae0b7b8c65209353820e887.1783357184.git.joerg.sommer@navimatix.de
State New
Headers show
Series [1/4] files/fs-perms.txt: Replace /srv by $servicedir | expand

Commit Message

Jörg Sommer July 6, 2026, 4:59 p.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

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 <joerg.sommer@navimatix.de>
---
 meta/recipes-core/systemd/systemd_259.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd_259.5.bb b/meta/recipes-core/systemd/systemd_259.5.bb
index 0fbfcaba42..447974373f 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