systemd installs /usr/lib/tmpfiles.d/var.conf which contains

        d /var/spool 0755 - - -

This makes systemd-tmpfilesd fail creating this directory if
the rootfs is readonly.

This patch selects ROOTFS_VAR_SPOOL, as runtime dependency, to
ensure this directory is already available which makes
systemd-tmpfilesd happy.

Signed-off-by: Gavin Schenk <g.sch...@eckelmann.de>
---

I tested this patch: https://eckelmann.kpaste.net/c13172

 rules/systemd.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/systemd.in b/rules/systemd.in
index 95f77d064..04c6ee998 100644
--- a/rules/systemd.in
+++ b/rules/systemd.in
@@ -33,6 +33,7 @@ menuconfig SYSTEMD
        select HOST_SYSTEMD     if SYSTEMD_UDEV_HWDB
        select ROOTFS_VAR_LIB   if RUNTIME
        select ROOTFS_VAR_CACHE if RUNTIME
+       select ROOTFS_VAR_SPOOL if RUNTIME
        prompt "systemd                       "
        help
          systemd is a system and session manager for Linux, compatible with 
SysV
-- 
2.28.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to