From: ChenQi <Qi.Chen@windriver.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][PATCH V5 1/3] base-passwd: add clock group
Date: Fri, 31 Oct 2025 14:09:29 +0800 [thread overview]
Message-ID: <10e196ea-a7fe-4a86-93b6-bedf2e819ee1@windriver.com> (raw)
In-Reply-To: <CANNYZj_1CpU0svcA4mRWA6=mvY+GLgqruO50jACnUO439FO6aA@mail.gmail.com>
On 10/31/25 13:54, Alexander Kanavin wrote:
> On Fri, 31 Oct 2025 at 04:05, Chen Qi via lists.openembedded.org
> <Qi.Chen=windriver.com@lists.openembedded.org> wrote:
>> New systemd version (v258) introduces a new group, clock, to
>> "enable applications like linuxptp to open clocks without root
>> privileges".[1]
>>
>> This results in warning at do_rootfs time:
>> WARNING: Group clock has never been defined
>>
>> Add group clock with gid 81 to fix this issue. The wheel group's
>> gid is 80, so 81 is chosen.
>>
>> Note that Debian rejects this patch because they're using sysusers
>> to handle such groups, including 'clock', 'kvm', 'sgx', etc. We're
>> not relying on sysusers, so we have to add a patch here.
> The question I had was why can't this be done in systemd recipe,
> similar to what weston recipe does:
>
> GROUPADD_PARAM:${PN} = "--system weston-launch"
>
> Alex
Hi Alex,
IMHO, there are two reasons.
1) It will result in other recipes using this group have a dependency on
systemd recipe. This might not be a problem for clock group now, because
it was newly introduced. But such dependency is really unneeded. It's
possible that they use sysvinit and they can still use this group.
2) It's better we handle such groups (sgx, wheel, kvm, clock) in a
consistent manner. We either change them all, or we keep the status quo.
I mean, if we use sysusers mechanism or change useradd.bbclass to have
similar behavior with sysusers, it's possible that we can remove these
groups from base-passwd. Because in this way, there will be no
unnecessary extra inter-recipe dependencies.
In summary, for a group that might be needed by multiple recipes that do
not necessarily have dependency relationships, we can only put it on
base-passwd for now. If we re-design and re-implement useradd.bbclass,
we might be able to avoid this.
Regards,
Qi
next prev parent reply other threads:[~2025-10-31 6:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 3:05 [OE-core][PATCH V5 1/3] base-passwd: add clock group Qi.Chen
2025-10-31 3:05 ` [OE-core][PATCH V5 2/3] systemd: upgrade from 257.8 to 258.1 Qi.Chen
2025-10-31 3:05 ` [OE-core][PATCH V5 3/3] parselogs: ignore error on qemuarm as a workaround Qi.Chen
2025-10-31 5:54 ` [OE-core][PATCH V5 1/3] base-passwd: add clock group Alexander Kanavin
2025-10-31 6:09 ` ChenQi [this message]
2025-10-31 16:22 ` Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10e196ea-a7fe-4a86-93b6-bedf2e819ee1@windriver.com \
--to=qi.chen@windriver.com \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox