Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925524 - sys-kernel/dracut: systemd + app-crypt/tpm2-tss - unknown group tss reported
Summary: sys-kernel/dracut: systemd + app-crypt/tpm2-tss - unknown group tss reported
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexander Tsoy
URL: https://github.com/dracutdevs/dracut/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-26 05:33 UTC by Andrew Udvare
Modified: 2024-02-27 23:33 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2024-02-26 05:33:14 UTC
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.