this post was submitted on 03 Dec 2025
78 points (96.4% liked)

Linux

59999 readers
722 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

My disk is encrypted with LUKS and I wanted to make it auto-unlock using TPM.

I can't enter UEFI as I have fastboot enabled.

Could anyone help me please? 🫡

you are viewing a single comment's thread
view the rest of the comments
[–] Magister@lemmy.world 11 points 3 days ago* (last edited 3 days ago)

Do you have GRUB? If yes you can edit your kernel command line and append "init=/bin/bash", see if at least this gives you a prompt, this has saved me a couple of time in the past. Else booting on a USB and mounting your boot partition may help to fix it.

BTW I also have LUKS and I'm using TPM, using tpm2-initramfs-tool, first, it failed because I forgot the tpm modules in initrd, but I always have 2 kernels installed and only modify one initrd at a time to have a safe boot if I have a problem, like I had!

I tested tpm2-initramfs-tool with proper tpm2 modules and it worked.

I also tested with clevis-initramfs and clevis-tpm2 and it's even easier, no messing with crypttab.

Also, as long as you can break GRUB and append "init=/bin/bash" it is not secure of course, you can then prevent grub editing or not using grub at all.