FS#76527 - [systemd] boot is perpetually stalled waiting for TPM2 PCR Barrier to start
Attached to Project:
Arch Linux
Opened by LaserEyess (LaserEyess) - Friday, 11 November 2022, 15:43 GMT
Last edited by Christian Hesse (eworm) - Monday, 21 November 2022, 11:25 GMT
Opened by LaserEyess (LaserEyess) - Friday, 11 November 2022, 15:43 GMT
Last edited by Christian Hesse (eworm) - Monday, 21 November 2022, 11:25 GMT
|
Details
Description:
When using a setup where systemd-pcrphase-sysinit.service is active, the boot is stalled forever waiting for this service to stop. See the following image: https://0x0.st/o6eE.png The following needs to hold for the service to work: AssertPathExists=!/etc/initrd-release ConditionSecurity=tpm2 ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f Additional info: * version: 252.1-1 * config and/or log files etc.: Not possible right now, working on it * link to upstream bug report, if any: None (yet) Steps to reproduce: 1. Create a scenario where systemd-pcrphase-sysinit.service is activated 2. Boot 3. Wait forever |
This task depends upon
Closed by Christian Hesse (eworm)
Monday, 21 November 2022, 11:25 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 252.1-2
Monday, 21 November 2022, 11:25 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 252.1-2
1. I am using dracut to create a unified kernel image with keys created with sbctl, this setup works in 251.x, on multiple machines
2. I use secure boot, this is working with 251.x
3. On this particular machine I do TPM2 based auto unlocking based on PCR 7 **only**
4. I use systemd-boot, which has been signed by sbctl and passes secure boot
The full boot log from an instance when it stalled forever is attached.
As per Manjaro discussion forum [1], removing 'tpm2-abrmd' resolved the issue.
[1] https://forum.manjaro.org/t/testing-update-2022-11-08-kernels-gnome-43-openssl-3-0-firefox-thunderbird-mesa-kde-gear-22-08-3-libreoffice-lxqt-1-2-0/126303/15
FS#76532There is ongoing activity in the linked upstream report. Please let us know if/when there is an outcome.