| Message ID | 20251128043221.3603223-1-Qi.Chen@windriver.com |
|---|---|
| State | Accepted, archived |
| Commit | aad849301be157b5605fc0133e7312ca30250d82 |
| Headers | show |
| Series | [RESEND,v6,1/3] base-passwd: add clock group | expand |
I think we've had a discussion about why this can't be done from systemd recipe but I don't remember the conclusion; can you add the arguments to the commit message please? Alex On Fri, 28 Nov 2025 at 05:34, Chen Qi via lists.openembedded.org <Qi.Chen=windriver.com@lists.openembedded.org> wrote: > > From: Chen Qi <Qi.Chen@windriver.com> > > 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. > > [1] https://github.com/systemd/systemd/commit/af96ccfc24bc4803078a46b4ef2cdeb5decdfbcd > > Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > --- > .../base-passwd/0001-Add-clock-group.patch | 34 +++++++++++++++++++ > .../base-passwd/base-passwd_3.6.7.bb | 1 + > 2 files changed, 35 insertions(+) > create mode 100644 meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch > > diff --git a/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch b/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch > new file mode 100644 > index 0000000000..af871949fa > --- /dev/null > +++ b/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch > @@ -0,0 +1,34 @@ > +From 4b3a8f347179d7e2a1062eeed13a6474deb28728 Mon Sep 17 00:00:00 2001 > +From: Chen Qi <Qi.Chen@windriver.com> > +Date: Thu, 16 Oct 2025 08:48:49 +0800 > +Subject: [PATCH] Add clock group > + > +The clock group is needed to "to enable applications like linuxptp > +to open clocks without root privileges". See the link below: > +https://github.com/systemd/systemd/commit/af96ccfc24bc4803078a46b4ef2cdeb5decdfbcd > + > +Note that this group is needed as long as people use udev from > +systemd because 50-udev-default.rules needs it. See the above > +commit. > + > +Upstream-Status: Denied [https://salsa.debian.org/debian/base-passwd/-/merge_requests/17] > + > +Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > +--- > + group.master | 1 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/group.master b/group.master > +index e54fd1d..6f84539 100644 > +--- a/group.master > ++++ b/group.master > +@@ -39,5 +39,6 @@ staff:*:50: > + games:*:60: > + shutdown:*:70: > + wheel:*:80: > ++clock:*:81: > + users:*:100: > + nogroup:*:65534: > +-- > +2.34.1 > + > diff --git a/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb b/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > index 177927d674..e4e0890293 100644 > --- a/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > +++ b/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > @@ -13,6 +13,7 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar > file://0005-Add-kvm-group.patch \ > file://0007-Add-wheel-group.patch \ > file://0001-base-passwd-Add-the-sgx-group.patch \ > + file://0001-Add-clock-group.patch \ > " > > SRC_URI[sha256sum] = "cf869870fed7862b57bfa9e99cd5cd6f365e2349705a1b65af7fc182629bd1ab" > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#226880): https://lists.openembedded.org/g/openembedded-core/message/226880 > Mute This Topic: https://lists.openembedded.org/mt/116509588/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
OK. I'll send out v7. Regards, Qi -----Original Message----- From: Alexander Kanavin <alex.kanavin@gmail.com> Sent: Friday, November 28, 2025 10:01 PM To: Chen, Qi <Qi.Chen@windriver.com> Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core][RESEND][PATCH v6 1/3] base-passwd: add clock group I think we've had a discussion about why this can't be done from systemd recipe but I don't remember the conclusion; can you add the arguments to the commit message please? Alex On Fri, 28 Nov 2025 at 05:34, Chen Qi via lists.openembedded.org <Qi.Chen=windriver.com@lists.openembedded.org> wrote: > > From: Chen Qi <Qi.Chen@windriver.com> > > 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. > > [1] > https://github.com/systemd/systemd/commit/af96ccfc24bc4803078a46b4ef2c > deb5decdfbcd > > Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > --- > .../base-passwd/0001-Add-clock-group.patch | 34 +++++++++++++++++++ > .../base-passwd/base-passwd_3.6.7.bb | 1 + > 2 files changed, 35 insertions(+) > create mode 100644 > meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch > > diff --git > a/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch > b/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch > new file mode 100644 > index 0000000000..af871949fa > --- /dev/null > +++ b/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.p > +++ atch > @@ -0,0 +1,34 @@ > +From 4b3a8f347179d7e2a1062eeed13a6474deb28728 Mon Sep 17 00:00:00 > +2001 > +From: Chen Qi <Qi.Chen@windriver.com> > +Date: Thu, 16 Oct 2025 08:48:49 +0800 > +Subject: [PATCH] Add clock group > + > +The clock group is needed to "to enable applications like linuxptp to > +open clocks without root privileges". See the link below: > +https://github.com/systemd/systemd/commit/af96ccfc24bc4803078a46b4ef2 > +cdeb5decdfbcd > + > +Note that this group is needed as long as people use udev from > +systemd because 50-udev-default.rules needs it. See the above commit. > + > +Upstream-Status: Denied > +[https://salsa.debian.org/debian/base-passwd/-/merge_requests/17] > + > +Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > +--- > + group.master | 1 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/group.master b/group.master index e54fd1d..6f84539 > +100644 > +--- a/group.master > ++++ b/group.master > +@@ -39,5 +39,6 @@ staff:*:50: > + games:*:60: > + shutdown:*:70: > + wheel:*:80: > ++clock:*:81: > + users:*:100: > + nogroup:*:65534: > +-- > +2.34.1 > + > diff --git a/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > b/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > index 177927d674..e4e0890293 100644 > --- a/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > +++ b/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb > @@ -13,6 +13,7 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar > file://0005-Add-kvm-group.patch \ > file://0007-Add-wheel-group.patch \ > file://0001-base-passwd-Add-the-sgx-group.patch \ > + file://0001-Add-clock-group.patch \ > " > > SRC_URI[sha256sum] = "cf869870fed7862b57bfa9e99cd5cd6f365e2349705a1b65af7fc182629bd1ab" > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#226880): > https://lists.openembedded.org/g/openembedded-core/message/226880 > Mute This Topic: https://lists.openembedded.org/mt/116509588/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub > [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch b/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch new file mode 100644 index 0000000000..af871949fa --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0001-Add-clock-group.patch @@ -0,0 +1,34 @@ +From 4b3a8f347179d7e2a1062eeed13a6474deb28728 Mon Sep 17 00:00:00 2001 +From: Chen Qi <Qi.Chen@windriver.com> +Date: Thu, 16 Oct 2025 08:48:49 +0800 +Subject: [PATCH] Add clock group + +The clock group is needed to "to enable applications like linuxptp +to open clocks without root privileges". See the link below: +https://github.com/systemd/systemd/commit/af96ccfc24bc4803078a46b4ef2cdeb5decdfbcd + +Note that this group is needed as long as people use udev from +systemd because 50-udev-default.rules needs it. See the above +commit. + +Upstream-Status: Denied [https://salsa.debian.org/debian/base-passwd/-/merge_requests/17] + +Signed-off-by: Chen Qi <Qi.Chen@windriver.com> +--- + group.master | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/group.master b/group.master +index e54fd1d..6f84539 100644 +--- a/group.master ++++ b/group.master +@@ -39,5 +39,6 @@ staff:*:50: + games:*:60: + shutdown:*:70: + wheel:*:80: ++clock:*:81: + users:*:100: + nogroup:*:65534: +-- +2.34.1 + diff --git a/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb b/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb index 177927d674..e4e0890293 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.6.7.bb @@ -13,6 +13,7 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar file://0005-Add-kvm-group.patch \ file://0007-Add-wheel-group.patch \ file://0001-base-passwd-Add-the-sgx-group.patch \ + file://0001-Add-clock-group.patch \ " SRC_URI[sha256sum] = "cf869870fed7862b57bfa9e99cd5cd6f365e2349705a1b65af7fc182629bd1ab"