From 745132082cf06c25768ef279f0b1f1250b00f121 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 9 Sep 2026 18:48:41 +0200 Subject: [PATCH] malcontent: pass the useradd options to every system user 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) Signed-off-by: Markus Volk Signed-off-by: Khem Raj --- meta-oe/recipes-gnome/malcontent/malcontent.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 \ +"