Still reproducible on Kubuntu 26.10, and here is a workaround that fixed
it for me.
Hardware: Dell Inspiron 3593, BIOS 1.30.0 (03/07/2024)
OS: Kubuntu 26.10, kernel 7.3.0-10-generic
GRUB: grub-install (GRUB) 2.14-2ubuntu3
Setup: full-disk encryption (LUKS). Layout: unencrypted EFI partition,
separate unencrypted /boot (ext4), encrypted root (btrfs) and a
separate encrypted /home (btrfs). dracut is used instead of
initramfs-tools,
with TPM2 auto-unlock (systemd-cryptenroll, PCR 7). I wanted the TPM
to unlock both the root and home partitions; root unlocks
automatically.
Symptom: intermittent boot failure. Sometimes it boots fine, sometimes GRUB
prints 12 times this message: "error: command failed", then
"error: you need to load the kernel first" and "Press any key to continue".
Selecting the first entry from the menu repeats the same errors.
Ctrl+Alt+Del and trying again sometimes works.
Workaround (the same idea as in earlier comments: remove GRUB's tpm module
before it loads the kernel):
1. Create a script:
sudo tee /etc/grub.d/06_notpm >/dev/null <<'EOF'
#!/bin/sh
echo 'rmmod tpm'
EOF
sudo chmod +x /etc/grub.d/06_notpm
2. Regenerate the config:
sudo update-grub
3. Check that the line is in the config:
sudo grep -n "rmmod tpm" /boot/grub/grub.cfg
Notes:
- The script only prints "rmmod tpm"; update-grub collects the output of all
scripts in /etc/grub.d/ and writes it into grub.cfg. The 06 prefix makes it
run before 10_linux (the order is alphabetical).
- If you do not execute chmod +x, update-grub ignores the file.
- Result: 8 out of 8 boots without any error (4 cold boots and 4 reboots),
and TPM2 auto-unlock of the root partition still works. This is expected
because the binding is to PCR 7 (Secure Boot state), which is measured by
the firmware and not by GRUB.
- To undo: sudo rm /etc/grub.d/06_notpm && sudo update-grub
- As mentioned earlier in this bug, "rmmod tpm" may fail with "no such
module" for some users; it did not happen on my machine.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883785
Title:
intermittent boot failure dell inspiron 3593
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1883785/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs