Created attachment 1787680 [details]
Description of problem:
I've enrolled my FIDO2 device (Yubikey 5) as a method to unlock my LUKS2 partitions as described in this article:
Booting with "fido2-device=auto" in crypttab doesn't work and drops me to dracut's rescue shell.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Enroll the swap and root LUKS2 partitions:
# systemd-cryptenroll --fido2-device=auto /dev/nvme0n1p6
# systemd-cryptenroll --fido2-device=auto /dev/nvme0n1p7
2. Update /etc/crypttab
luks-9e4a0d32-860a-4c93-8ce8-a949e55dafe9 UUID=9e4a0d32-860a-4c93-8ce8-a949e55dafe9 - fido2-device=auto,discard
luks-a18bef38-c17a-4b60-bbc2-84c2fd87bceb UUID=a18bef38-c17a-4b60-bbc2-84c2fd87bceb - fido2-device=auto,discard
3. Rebuild dracut
# dracut -f
The boot process drops me to a rescue shell after several minutes of timeout. It doesn't ask the password at any moment and touching the Yubikey does nothing. This message is logged:
systemd-cryptsetup: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/9e4a0d32-860a-4c93-8ce8-a949e55dafe9.
systemd-cryptsetup: Automatically discovered security FIDO2 token unlocks volume.
systemd-cryptsetup: FIDO2 support is not installed.
Unlocking the LUKS devices with the Yubikey. Alternatively if the device is not present, ask for a password.
Confirmed here with the 'blue' Yubico security key NFC.
Hmm... well I tried ensuring /usr/lib64/libfido2.so.* was in the initramfs by creating /etc/dracut.conf.d/fido2.conf with
install_optional_items+=" /usr/lib64/libfido2.so.* "
and the libraries are in the image. This works ONLY IF the token is plugged in before boot and then tapped when it flashes.
If the token is not present at the outset, the display just spins instead of presenting a password prompt. There's no clean way to get out of this. This is not the user experience I'd expected!
Heh, I wanted to post the following comment yesterday, but bugzilla said "midair collision detected"…
> Can you show the the output of 'lsinitrd' on the dracut image?
> I suspect the tpm libraries are missing there.
You already answered that, thanks.
OK, so this looks like a separate bug.
Some people reported similar problems in https://github.com/systemd/systemd/issues/19872.
If you could attach the debug logs from the failing case, that'd be useful.
I've created this bug for the missing libraries in the dracut image:
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version'
to a later Fedora Linux version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora Linux 34 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.
Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
Thank you for reporting this bug and we are sorry it could not be fixed.