package/util-linux: add uuidd user and group
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
@@ -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
Julien Olivain
AppliedHi 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 2The 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.
Signed-off-by Vladimir Oltean <[email protected]>
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
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 2The 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.
Signed-off-by Vladimir Oltean <[email protected]>
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