After building an initrd with Dracut with systemd (which pulls in tpm2-tss module), prior to switching sysroot, these non-fatal errors will appear: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:2: Failed to resolve user 'tss': No such process /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:4: Failed to resolve user 'tss': No such process /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:6: Failed to resolve group 'tss': No such process /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:7: Failed to resolve group 'tss': No such process /usr/lib/udev/rules.d/60-tpm-udev.rules:3 Unknown user 'tss', ignoring. /usr/lib/udev/rules.d/60-tpm-udev.rules:4 Unknown group 'tss', ignoring. The tpm2-tss module does attempt to create at least the tss user via a file in sysusers.d: https://github.com/dracutdevs/dracut/blob/master/modules.d/91tpm2-tss/module-setup.sh#L35C21-L35C35 The problem is this file tpm2-tss.conf does not exist on Gentoo machines. It is normally installed by tpm2-tss but we do not because we have acct-user/tss and the group packages. I think the best solution to send a patch upstream so that the acct-user/acct-group files are considered as well as the standard file.
There is a sort of fix upstream, it requires that we patch in `acct-{user,group}` which is Gentoo specific.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d10cfb6fe35ddaf48dad2a5192ac40899ac0b7a3 commit d10cfb6fe35ddaf48dad2a5192ac40899ac0b7a3 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2024-07-14 08:15:50 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2024-07-14 08:15:50 +0000 sys-kernel/dracut: add 103 With patch for Gentoo acct-user and acct-group conf files Closes: https://bugs.gentoo.org/925524 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sys-kernel/dracut/Manifest | 1 + sys-kernel/dracut/dracut-103.ebuild | 152 +++++++++++++++++++++ sys-kernel/dracut/dracut-9999.ebuild | 2 + .../files/dracut-103-acct-user-group-gentoo.patch | 30 ++++ 4 files changed, 185 insertions(+)