diff mbox series

[meta-oe] malcontent: pass the useradd options to every system user

Message ID 20260909164802.335873-1-f_l_k@t-online.de
State New
Headers show
Series [meta-oe] malcontent: pass the useradd options to every system user | expand

Commit Message

Markus Volk Sept. 9, 2026, 4:48 p.m. UTC
USERADD_PARAM is a semicolon separated list of complete useradd
invocations. Only the first entry carried the options, so
malcontent-timerd and malcontent-webd were created with the useradd
defaults: regular UIDs from the user range, /bin/sh as shell and
/home/malcontent-timerd and /home/malcontent-webd created in the
rootfs. Upstream declares all three as system users without a home in
its sysusers.d fragments.

Repeat the options for each user and point the home of the two daemons
at the StateDirectory their units use, so no directory shows up under
/home.

Tested on corei7-64: the rootfs of plasma-image contains only the real
user under /home and all three accounts have system UIDs, /bin/false
and no home directory.

AI-Generated: Uses Claude Code (Claude Fable 5.1)
---
 meta-oe/recipes-gnome/malcontent/malcontent.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-gnome/malcontent/malcontent.bb b/meta-oe/recipes-gnome/malcontent/malcontent.bb
index a6aa59513d..0bb258e2b0 100644
--- a/meta-oe/recipes-gnome/malcontent/malcontent.bb
+++ b/meta-oe/recipes-gnome/malcontent/malcontent.bb
@@ -37,5 +37,9 @@  FILES:${PN} += " \
 "
 
 USERADD_PACKAGES = "${PN}"
-USERADD_PARAM:${PN} = "--system --no-create-home --user-group --shell /bin/false --home-dir ${localstatedir}  malcontent-timer-ext-agent;malcontent-timerd;malcontent-webd"
+USERADD_PARAM:${PN} = " \
+    --system --no-create-home --user-group --shell /bin/false --home-dir ${localstatedir} malcontent-timer-ext-agent; \
+    --system --no-create-home --user-group --shell /bin/false --home-dir ${localstatedir}/lib/malcontent-timerd malcontent-timerd; \
+    --system --no-create-home --user-group --shell /bin/false --home-dir ${localstatedir}/lib/malcontent-webd malcontent-webd \
+"