From e8d2e23c8e8e5163389b35bc3e1b926a680c97c3 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 5 Aug 2026 07:39:43 +1200 Subject: [PATCH] colord: set proper home-dir 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 Signed-off-by: Khem Raj (cherry picked from commit f4f7c09deb94ae7dd7d5f42680f7103f2fd37397) Signed-off-by: Ankur Tyagi Signed-off-by: Anuj Mittal --- meta-oe/recipes-support/colord/colord.bb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-support/colord/colord.bb b/meta-oe/recipes-support/colord/colord.bb index 6eb9db8dab..e918500161 100644 --- a/meta-oe/recipes-support/colord/colord.bb +++ b/meta-oe/recipes-support/colord/colord.bb @@ -46,6 +46,11 @@ FILES:${PN} += " \ ${libdir}/colord-sensors \ " -USERADD_PACKAGES = "${PN}" -USERADD_PARAM:${PN} = "--system --user-group -s /bin/false colord" +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 --shell /bin/false --no-create-home --home-dir ${localstatedir}/lib/colord colord"