Skip to contentSkip to conversation

package/util-linux: add uuidd user and group

PATCH Applied Vladimir Oltean 3 participants 3 messages Mar 9, 2025 – Mar 16, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/util-linux: add uuidd user and group

At rootfs creation time, fakeroot fails as follows:

printf 'host/bin/systemctl --root=build/buildroot-fs/ext2/target preset-all\n' >> build/buildroot-fs/ext2/fakeroot (blabla)
FAKEROOTDONTTRYCHOWN=1 host/bin/fakeroot -- build/buildroot-fs/ext2/fakeroot rootdir=build/buildroot-fs/ext2/target
table='build/buildroot-fs/full_devices_table.txt'
ignored spec: h /var/log/journal/%m - - - - +C
ignored spec: x /var/tmp/systemd-private-%b-*
ignored spec: X /var/tmp/systemd-private-%b-*/tmp
ignored spec: x /var/lib/systemd/coredump/.#core*.%b*
ignored spec: z /var/log/journal/%m 2755 root systemd-journal - -
ignored spec: z /var/log/journal/%m/system.journal 0640 root systemd-journal - -
<stdin>:37: Failed to resolve user 'uuidd': No such process
make[1]: *** [fs/ext2/ext2.mk:66: images/rootfs.ext2] Error 65
make: *** [Makefile:83: _all] Error 2

The error comes from systemctl, which cannot find the uuidd user in the target rootfs, needed for this:

/lib/systemd/system/uuidd.service:
[Service]
ExecStart=/usr/sbin/uuidd --socket-activation --cont-clock Restart=no
User=uuidd
Group=uuidd

Add the uuid user and group in support/scripts/mkusers syntax.

---
 package/util-linux/util-linux.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/util-linux/util-linux.mk +6 -0
index 7a143290ebfa..ed30c0b107d3 100644
@@ -60,6 +60,12 @@ HOST_UTIL_LINUX_CONF_OPTS = \
 	--with-systemdsystemunitdir=no \
 	--without-python
 
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_UUIDD),y)
+define UTIL_LINUX_USERS
+	uuidd -1 uuidd -1 * - - - uuidd user
+endef
+endif
+
 ifneq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES)$(BR2_PACKAGE_UTIL_LINUX_CRAMFS)$(BR2_PACKAGE_UTIL_LINUX_FSCK)$(BR2_PACKAGE_UTIL_LINUX_LOSETUP),)
 UTIL_LINUX_SELINUX_MODULES = fstools
 endif
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Vladimir,

Quoted 27 lines · Vladimir Oltean

At rootfs creation time, fakeroot fails as follows:

printf 'host/bin/systemctl --root=build/buildroot-fs/ext2/target preset-all\n' >> build/buildroot-fs/ext2/fakeroot (blabla)
FAKEROOTDONTTRYCHOWN=1 host/bin/fakeroot -- build/buildroot-fs/ext2/fakeroot rootdir=build/buildroot-fs/ext2/target
table='build/buildroot-fs/full_devices_table.txt'
ignored spec: h /var/log/journal/%m - - - - +C
ignored spec: x /var/tmp/systemd-private-%b-*
ignored spec: X /var/tmp/systemd-private-%b-*/tmp
ignored spec: x /var/lib/systemd/coredump/.#core*.%b*
ignored spec: z /var/log/journal/%m 2755 root systemd-journal - -
ignored spec: z /var/log/journal/%m/system.journal 0640 root systemd-journal - -
<stdin>:37: Failed to resolve user 'uuidd': No such process
make[1]: *** [fs/ext2/ext2.mk:66: images/rootfs.ext2] Error 65
make: *** [Makefile:83: _all] Error 2

The error comes from systemctl, which cannot find the uuidd user in the target rootfs, needed for this:

/lib/systemd/system/uuidd.service:
[Service]
ExecStart=/usr/sbin/uuidd --socket-activation --cont-clock Restart=no
User=uuidd
Group=uuidd

Quoted 3 lines

Add the uuid user and group in support/scripts/mkusers syntax.

Applied to master, thanks.

I slightly reworded the commit log, to add extra info (commands to reproduce the issue).

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Vladimir Oltean
Quoted 29 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vladimir" == Vladimir Oltean <[email protected]> writes:

At rootfs creation time, fakeroot fails as follows:
printf 'host/bin/systemctl --root=build/buildroot-fs/ext2/target preset-all\n' >> build/buildroot-fs/ext2/fakeroot
(blabla)
FAKEROOTDONTTRYCHOWN=1 host/bin/fakeroot -- build/buildroot-fs/ext2/fakeroot rootdir=build/buildroot-fs/ext2/target table='build/buildroot-fs/full_devices_table.txt'
ignored spec: h /var/log/journal/%m - - - - +C
ignored spec: x /var/tmp/systemd-private-%b-*
ignored spec: X /var/tmp/systemd-private-%b-*/tmp
ignored spec: x /var/lib/systemd/coredump/.#core*.%b*
ignored spec: z /var/log/journal/%m 2755 root systemd-journal - - ignored spec: z /var/log/journal/%m/system.journal 0640 root systemd-journal - - <stdin>:37: Failed to resolve user 'uuidd': No such process make[1]: *** [fs/ext2/ext2.mk:66: images/rootfs.ext2] Error 65
make: *** [Makefile:83: _all] Error 2

The error comes from systemctl, which cannot find the uuidd user in the target rootfs, needed for this:

/lib/systemd/system/uuidd.service:
[Service]
ExecStart=/usr/sbin/uuidd --socket-activation --cont-clock Restart=no
User=uuidd
Group=uuidd

Quoted 3 lines

Add the uuid user and group in support/scripts/mkusers syntax.

Committed to 2024.02.x and 2024.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot