| Message ID | 20260801155750.7583-1-f_l_k@t-online.de |
|---|---|
| State | Under Review |
| Headers | show |
| Series | [meta-oe] colord: set proper home-dir | expand |
diff --git a/meta-oe/recipes-support/colord/colord.bb b/meta-oe/recipes-support/colord/colord.bb index 19d2ac3211..571c4b1826 100644 --- a/meta-oe/recipes-support/colord/colord.bb +++ b/meta-oe/recipes-support/colord/colord.bb @@ -47,6 +47,11 @@ FILES:${PN} += " \ ${libdir}/sysusers.d \ " +do_install:append() { + install -d ${D}${sysconfdir}/tmpfiles.d + echo "d ${localstatedir}/lib/colord 700 root root - -" > ${D}${sysconfdir}/tmpfiles.d/colord.conf +} + USERADD_PACKAGES = "${PN}" -USERADD_PARAM:${PN} = "--system --user-group -s /bin/false colord" +USERADD_PARAM:${PN} = "--system --user-group --shell /bin/false --no-create-home --home-dir ${localstatedir}/lib/colord colord"
This fixes: WARNING: hyprland-image-1.0-r0 do_rootfs: User colord has been defined as (colord, 998, 998, -, /home/colord, /bin/false) but sysusers.d expects it as (colord, -, -, colord colour management daemon, /var/lib/colord, -) Signed-off-by: Markus Volk <f_l_k@t-online.de> --- meta-oe/recipes-support/colord/colord.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)