Boot failure after fresh install of Omarchy 3.4.2 on ThinkPad X1 Yoga Gen 3 – TPM2 services fail with error 256, leading to watchdog reboot
Note: I troubleshot this issue using SuperGrok and the following issue summary was generated by SuperGrok after I was able to use it to develop a functional workaround. I also thoroughly reviewed the contents to validate the accuracy. Additionally, I originally encountered this issue after upgraded Omarchy from 3.2.x to 3.4.2, but wiped and reloaded the system in an unsuccessful attempt to address it. That said, I am not sure exactly when this bug was introduced since I don't use this particular system often.
System Details Hardware: Lenovo ThinkPad X1 Yoga Gen 3 (Intel 8th gen, UHD Graphics 620, NVMe storage, STM7304 TPM 2.0 chip) Omarchy Version: Fresh install of 3.4.2 (from official ISO) Bootloader: Limine (with UKIs via limine-mkinitcpio-hook) Filesystem: Btrfs with subvolumes (standard Omarchy layout: @ for /, @home, etc.) BIOS/Firmware: 11.8.96.4657 TPM Status: Enabled in BIOS (default on this ThinkPad) Previous Behavior: System previously booted fine before reinstall (same hardware)
What's Wrong? After a fresh reinstall of Omarchy 3.4.2:
LUKS decryption succeeds (passphrase accepted, keyboard input works) Boot progress bar (Plymouth) advances to ~75% System hangs for 1–2 minutes Then forcibly reboots with watchdog timeout
Verbose boot logs (after disabling Plymouth via kernel params: plymouth.enable=0 rd.systemd.show_status=auto rd.udev.log_priority=3) show the failure:
[FAILED] Failed to start TPM NvPCR Product ID Measurement.
[FAILED] Failed to start Early TPM SRK Setup
[FAILED] Failed to start TPM SRK Setup
[FAILED] Failed to start TPM PCR NvPCR Initialization Separator
...
[ !! ] Forcibly rebooting: unit systemd-pcrnvdone.service failed, proceeding in 5s
...
watchdog: BUG: soft lockup - CPU#0 stuck for ...
tpmsystemd0: A TPM error (256) occurred stopping the TPM
Steps to Reproduce Perform a fresh install of Omarchy 3.4.2 ISO on ThinkPad X1 Yoga Gen 3 with LUKS encryption enabled. Reboot after install completes. Enter LUKS passphrase → observe hang at ~75% progress → eventual reboot loop.
Workaround / Resolution From any live USB (I used Fedora) chroot (after mounting Btrfs subvolumes and binds):
systemctl mask --now systemd-tpm2-setup.service
systemctl mask --now systemd-tpm2-setup-early.service
systemctl mask --now systemd-pcrproduct.service
systemctl mask --now systemd-pcrnvdone.service
limine-mkinitcpio
After this, the system boots normally to desktop. Masking these non-essential TPM services prevents the failure and watchdog reboot.
Additional Notes This appears related to recent systemd TPM2/NvPCR features (systemd 259+?) clashing with the STM7304 TPM on older ThinkPads. Similar issues reported in Arch forums and other systemd-based distros (e.g., timeouts or error 256 on ThinkPad hardware). Disabling TPM in BIOS is not a good workaround (breaks potential auto-unlock, Secure Boot trust chain). No other customizations were made post-install before the failure. Modules (i915, nvme, etc.) were added to initramfs during troubleshooting but did not resolve the hang—TPM services were the culprit.
Same laptop model here (ThinkPad X1 Yoga Gen 3, 20LFCTO1WW) and the same NvPCR trigger,
though my presentation differs from yours: I get a stall I power-cycled out of, rather
than your unit failures and watchdog reboot. Our setups differ too — you're on a
Limine/UKI systemd initrd, I'm on a busybox mkinitcpio initrd with cryptdevice=.
There's a fix that doesn't need masking, and it can be applied from the running system.
Root cause. systemd's NvPCRs are PCRs backed by TPM NV indexes, and this ST TPM doesn't handle them. With the quirk enabled systemd states it outright:
systemd-tpm2-setup[660]: The TPM does not correctly support NV indexes in NT_EXTEND mode,
unable to allocate NvPCR 'hardware': Operation not supported
Without it, an NV operation never returns and the kernel logs (verbatim):
tpm tpm0: invalid TPM_STS.x 0x01, dumping stack for forensics
with a tpm_tis_status → tpm_transmit → tpm_dev_transmit → tpm_dev_async_work
call chain (summarised). After that, anything touching /dev/tpm0 stops making progress.
The fix. systemd ships a quirk for exactly this — see the comment block in
/usr/lib/udev/hwdb.d/60-tpm2.hwdb. It already lists ST firmware 73.4; this machine
reports 73.20, so it isn't covered:
sudo tee /etc/udev/hwdb.d/61-tpm2-broken-nvpcr.hwdb >/dev/null <<'EOF'
tpm2:*:mfSTM:*
TPM2_BROKEN_NVPCR=1
EOF
sudo systemd-hwdb update
That vendor-wide match is what I've actually booted, and it sidesteps a chicken-and-egg
problem: pinning your exact revision needs systemd-analyze identify-tpm2, which needs a
booted machine with the TPM on. Once you're up you can narrow it — mine is
fw73.20.1151343132, so tpm2:*:mfSTM:*:fw73.20.*: would do.
To get far enough to apply it, either keep your masks for one boot, or turn the Security Chip off in BIOS, apply the hwdb entry, and turn it back on. No live USB either way.
Afterwards, boot completes with no units masked:
systemd-pcrextend[806]: Could not extend NvPCR: Operation not supported
systemd[1]: Finished TPM NvPCR Measurement of User Record for UID 1000.
systemd[1]: Reached target Multi-User System.
systemd[1]: Reached target Graphical Interface.
systemd-tpm2-setup, systemd-tpm2-setup-early and systemd-pcrproduct all report
success. (systemd-pcrnvdone is condition-skipped on my non-systemd initrd, so I can't
speak to it — it should run and succeed on yours.)
Two notes for anyone else landing here:
- On my machine, masking the four units wasn't sufficient by itself:
systemd-pcrlogin@<uid>.servicealso performs an NvPCR extend and wedged the chip during session setup, aftersysinit.targethad already been reached. It may well have been enough on yours — you report it was, and pcrlogin is ordering-only so it fails more gracefully. The hwdb property covers every NvPCR user at once, which is why I'd reach for it first. tpm_tis.interrupts=0does not help — I tried it, identical kernel stack trace. This is not the Lenovo TPM interrupt-routing bug.
This is a firmware defect rather than an Omarchy bug, but Omarchy could reasonably ship the hwdb entry: this laptop generation is common, and a frozen splash on a fresh install is a rough first experience.
Upstream: systemd#40485.
Additional evidence from another affected system, now reported upstream as systemd/systemd#43675:
https://github.com/systemd/systemd/issues/43675
Affected system
- Lenovo ThinkPad X1 Extreme Gen 1 (20MF)
- BIOS
N2EET69W1.51, the current Lenovo release - STMicroelectronics STM7304/ST33TPHF2ESPI discrete TPM, firmware
73.4.1151340900 - Omarchy 4.0 RC (
4.0.0.r2044.gd7c783e-1) - systemd
261.2-1, Linux7.2.3-arch1-3 - Limine with a mkinitcpio-generated UKI; encrypted Btrfs root
systemd 261.2 already ships the intended hwdb match:
tpm2:*:mfSTM:*:fw73.4.*:
TPM2_BROKEN_NVPCR=1
The property is present in the live udev database for tpmrm0. Nevertheless, repeated failed boots show early systemd-tpm2-setup initializing four NvPCRs, followed by systemd-pcrproduct touching the hardware NvPCR. The kernel then reports an invalid TPM status (0x01 or 0xff); after exactly 120 seconds, Esys_NV_Extend() times out with 0x000a000a, the TPM enters an unrecoverable state, and failure of the TPM/PCR units causes a forced reboot.
The tpmrm0 udev worker was still processing during the early setup. By contrast, on a successful boot with the affected early units masked, the later [email protected] sees TPM2_BROKEN_NVPCR=1, skips the NvPCR measurement gracefully, and exits successfully.
This strongly suggests a race between appearance of the TPM device node, completion of tpm2_id/hwdb population, and startup of the early TPM/PCR services. It also matches systemd/systemd#41268, where the first early consumer reports no quirk property and later consumers see it.
The reliable workaround on this system remains:
systemd-tpm2-setup.service
systemd-tpm2-setup-early.service
systemd-pcrproduct.service
systemd-pcrnvdone.service
systemd-pcrphase-sysinit.service
masked, followed by rebuilding the UKI with limine-mkinitcpio. No TPM clear, firmware change, or partition modification was performed. I do not consider unmasking safe yet even though the quirk is visible after boot, because the failure occurs before that state is reliably available to the early services.
I looked at this from the source and the systemd units. I couldn't reproduce it, because a virtual TPM can't stand in for the ST33 firmware defect behind it.
Cause. The STMicroelectronics TPM in these ThinkPads can't handle systemd's NvPCRs, which are PCRs backed by TPM NV indexes. An NV_Extend on one never returns, the kernel logs invalid TPM_STS.x, and after that every TPM operation stalls or fails. Any measurement unit that fails while carrying FailureAction=reboot-force then forces the reboot. systemd ships a quirk for this (TPM2_BROKEN_NVPCR=1 in /usr/lib/udev/hwdb.d/60-tpm2.hwdb), but it only matches firmware fw73.4.*. @fsch's machine reports 73.20, so it isn't covered. @dat-nt18's 73.4 machine is covered and still fails, because the early units start before udev has attached the property to the device. That race is upstream in systemd/systemd#43675 and #41268, so widening the match alone won't fix every machine.
The unit in your log. In systemd 259 and 260, systemd-pcrnvdone.service ran on the host with FailureAction=reboot-force, so your log is consistent with a stock install. Since 261 it runs only in a systemd initramfs. Omarchy's initramfs is busybox-based (etc/mkinitcpio.conf.d/omarchy_hooks.conf), so on current systemd the reboot comes from systemd-pcrphase-sysinit.service or systemd-pcrphase.service, which matches #8190.
Omarchy side. quattro has no TPM handling. The manual says to turn the TPM off in the BIOS (manual/02-getting-started.md), and that is still the workaround that needs no files. #12106 adds FailureAction=none drop-ins for the host PCR units. That would stop the forced reboot on current systemd, but it doesn't stop the TPM from wedging, so boot could still stall. Nobody has shown it gets one of these machines to a desktop. Whether Omarchy should ship that, a broader mfSTM hwdb quirk, or both changes how every machine with this chip boots, so that's for the maintainer to decide. I haven't opened a fix.
Claude Opus 5.5 wrote this diagnosis and Codex Medium reviewed it. It agreed on the mechanism and on what #12106 does and doesn't cover. It also found the systemd 259 behaviour of systemd-pcrnvdone that I had missed, and I checked that against systemd's v259 and v261 sources. Independence between the two reviews isn't guaranteed. This now waits on the maintainer.
Another trigger for the same forced reboot, this time at shutdown, after a long suspend:
- Acer Nitro AN515-57 (Tiger Lake, Intel PTT firmware TPM), linux-omarchy 7.2.8, systemd 262, Limine/UKI
- After an S3 suspend of 3+ hours, the kernel disables the TPM on resume. The next power-off becomes a reboot. Short suspends don't trigger it.
tpm tpm0: NULL Seed name comparison failed
systemd-pcrextend: Failed to create TPM2 context: State not recoverable
Forcibly rebooting: unit systemd-pcrphase.service failed
Reproduced on demand. Turning off PTT in the BIOS fixes it.
@omarchybot @dhh @ryanrhughes Since Omarchy expects the TPM to be off, could it detect when TPM is enabled (at install or on update) and warn the user? TPM can cause problems like this one and the others in this issue: boot loops, login loops, and reboots on shutdown.
@kshatriya-abhay thanks, this one is useful because it's a different failure from the ThinkPad one, and the open fix should cover it completely.
What's happening. With TPM HMAC sessions enabled (CONFIG_TCG_TPM2_HMAC=y in linux-omarchy), the first TPM operation after resume reloads the kernel's NULL-seed primary key. If the name of that key no longer matches, the kernel logs NULL Seed name comparison failed and disables the chip. After that, systemd-pcrextend fails straight away with State not recoverable. --graceful only covers a missing TPM, so it doesn't skip this error. In systemd 262 both systemd-pcrphase.service and systemd-pcrphase-sysinit.service measure again when they stop (--graceful shutdown and --graceful final), and both carry FailureAction=reboot-force, which overrides a power-off. I haven't established why only suspends of 3+ hours trip it. A firmware TPM coming back from a long S3 with a new NULL seed fits, but your log doesn't prove it.
Why #12106 should fix this case. On the ST33 ThinkPads the TPM hangs, so stopping the reboot could still leave a stalled boot. Here the TPM fails fast. #12106 sets FailureAction=none on both of those units, so the measurement errors would still be logged and the machine should power off. Nobody has run it on affected hardware yet. You can reproduce this on demand, so a test from you would settle it. These are the same two drop-ins #12106 ships at d4f0f26ab408242cc3ef8f3abd2e77045efa913c. omarchy dev link won't install them, because they live under /etc:
for unit in systemd-pcrphase systemd-pcrphase-sysinit; do
sudo mkdir -p /etc/systemd/system/$unit.service.d
printf '[Unit]\nFailureAction=none\n' | sudo tee /etc/systemd/system/$unit.service.d/10-omarchy-no-force-reboot.conf
done
sudo systemctl daemon-reload
systemctl show systemd-pcrphase.service systemd-pcrphase-sysinit.service -p FailureAction
Both units should report FailureAction=none. Then turn PTT back on, suspend for 3+ hours and power off. It would help to know whether the machine powers off, and to see journalctl -b -1 -u systemd-pcrphase.service -u systemd-pcrphase-sysinit.service from that boot. To undo it, delete the two directories and run daemon-reload again. Another workaround that needs no files is the systemd.tpm2_measured_os=0 kernel parameter (systemd 261+). It switches these measurements off altogether.
Your warning suggestion. Detecting an enabled TPM at install or update and warning about it would be new behaviour, so whether Omarchy adds it is the maintainer's decision. #15813 also involves the TPM on systemd 262, but it's a separate defect: failed NvPCR units with no forced reboot, fixed upstream in v262.1.
Claude Opus 5.5 wrote this and Codex Medium reviewed it. Codex agreed on the mechanism. It also pointed out that systemd-pcrphase-sysinit fails the same way at shutdown, that the /etc drop-ins aren't covered by dev link, and that the systemd.tpm2_measured_os=0 workaround exists. I checked all three against systemd 262's units and documentation and Omarchy's bin/omarchy-dev-link. Independence between the two reviews isn't guaranteed. This now waits on your test result, and #12106 itself waits on the maintainer.