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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
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-07-14 08:21 UTC (History)
6 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.
Comment 1 Nowa Ammerlaan gentoo-dev 2024-07-05 12:28:59 UTC
There is a sort of fix upstream, it requires that we patch in `acct-{user,group}` which is Gentoo specific.
Comment 2 Larry the Git Cow gentoo-dev 2024-07-14 08:21:40 UTC
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(+)