All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] fwupd: create the fwupd-refresh user
@ 2026-09-27 14:12 Markus Volk
  2026-09-29  9:29 ` [oe] " Jörg Sommer
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Volk @ 2026-09-27 14:12 UTC (permalink / raw)
  To: openembedded-devel

fwupd-refresh.service runs as fwupd-refresh, which is only declared in
sysusers.d, so do_rootfs warns "User fwupd-refresh has never been
defined". Create it with useradd.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
---
 meta-oe/recipes-bsp/fwupd/fwupd_2.1.7.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-bsp/fwupd/fwupd_2.1.7.bb b/meta-oe/recipes-bsp/fwupd/fwupd_2.1.7.bb
index bab444be7e..9d1ac8de7d 100644
--- a/meta-oe/recipes-bsp/fwupd/fwupd_2.1.7.bb
+++ b/meta-oe/recipes-bsp/fwupd/fwupd_2.1.7.bb
@@ -26,7 +26,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
 # Machine-specific as we examine MACHINE_FEATURES to decide whether to build the UEFI plugins
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages
+inherit meson vala gobject-introspection systemd useradd bash-completion pkgconfig gi-docgen ptest manpages
 
 GIDOCGEN_MESON_OPTION = 'docs'
 GIDOCGEN_MESON_ENABLE_FLAG = 'enabled'
@@ -36,6 +36,9 @@ GIR_MESON_DISABLE_FLAG = 'disabled'
 
 EXTRA_OEMESON = "-Dvendor_ids_dir=${datadir}/hwdata"
 
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${localstatedir}/lib/fwupd --shell /sbin/nologin fwupd-refresh"
+
 PACKAGECONFIG ??= "\
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
     ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
-- 
2.55.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [oe] [meta-oe][PATCH] fwupd: create the fwupd-refresh user
  2026-09-27 14:12 [meta-oe][PATCH] fwupd: create the fwupd-refresh user Markus Volk
@ 2026-09-29  9:29 ` Jörg Sommer
  2026-09-29 16:56   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Jörg Sommer @ 2026-09-29  9:29 UTC (permalink / raw)
  To: f_l_k; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

Markus Volk via lists.openembedded.org schrieb am So 27. Sep, 16:12 (+0200):
> @@ -36,6 +36,9 @@ GIR_MESON_DISABLE_FLAG = 'disabled'
>  
>  EXTRA_OEMESON = "-Dvendor_ids_dir=${datadir}/hwdata"
>  
> +USERADD_PACKAGES = "${PN}"
> +USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${localstatedir}/lib/fwupd --shell /sbin/nologin fwupd-refresh"
> +

Maybe ${sbindir} instead of /sbin?


Regards, Jörg

-- 
Navimatix GmbH           T: 03641 - 327 99 0
Tatzendpromenade 2       F: 03641 - 526 306
07745 Jena               www.navimatix.de

Geschäftsführer: Steffen Späthe, Jan Rommeley
Registergericht: Amtsgericht Jena, HRB 501480

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6684 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [oe] [meta-oe][PATCH] fwupd: create the fwupd-refresh user
  2026-09-29  9:29 ` [oe] " Jörg Sommer
@ 2026-09-29 16:56   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2026-09-29 16:56 UTC (permalink / raw)
  To: joerg.sommer; +Cc: f_l_k, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]

send a followup, it looks a good improvement

On Tue, Sep 29, 2026 at 2:29 AM Jörg Sommer via lists.openembedded.org
<joerg.sommer=navimatix.de@lists.openembedded.org> wrote:

> Markus Volk via lists.openembedded.org schrieb am So 27. Sep, 16:12
> (+0200):
> > @@ -36,6 +36,9 @@ GIR_MESON_DISABLE_FLAG = 'disabled'
> >
> >  EXTRA_OEMESON = "-Dvendor_ids_dir=${datadir}/hwdata"
> >
> > +USERADD_PACKAGES = "${PN}"
> > +USERADD_PARAM:${PN} = "--system --no-create-home --user-group
> --home-dir ${localstatedir}/lib/fwupd --shell /sbin/nologin fwupd-refresh"
> > +
>
> Maybe ${sbindir} instead of /sbin?
>
>
> Regards, Jörg
>
> --
> Navimatix GmbH           T: 03641 - 327 99 0
> Tatzendpromenade 2       F: 03641 - 526 306
> 07745 Jena               www.navimatix.de
>
> Geschäftsführer: Steffen Späthe, Jan Rommeley
> Registergericht: Amtsgericht Jena, HRB 501480
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#130476):
> https://lists.openembedded.org/g/openembedded-devel/message/130476
> Mute This Topic: https://lists.openembedded.org/mt/121455859/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2455 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-29 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27 14:12 [meta-oe][PATCH] fwupd: create the fwupd-refresh user Markus Volk
2026-09-29  9:29 ` [oe] " Jörg Sommer
2026-09-29 16:56   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.