r/linuxadmin • • Nov 18 '25

How to securely auto-decrypt LUKS on boot up

I have a personal machine running Linux Mint that I'm using to learn more about Linux administration. It's a fresh install with LVM + LUKS. My main issue with this is that I have to manually decrypt the drive every time it boots up. An online search and a weird chat with AI did not show any obvious solution. Suggestions included:

  • storing the keyfile on a non-encrypted part of the drive, but that negates the benefits
  • storing the keyfile on a USB drive, but that negates the benefits too
  • storing the keyfile in TPM, but this failed (probably a PEBKAC, though)

Ideally, I'd like to get it to function like Bitlocker in that the key is not readable without some authentication and no separate hardware is required. Please advise.

17 Upvotes

67 comments sorted by

View all comments

Show parent comment

2

u/towo Nov 19 '25

clevis can use a tpm2 slot to unlock the system. So as good as we can reasonably expect to be secure while still being stored.

1

u/d00ber Nov 19 '25

Yep! I do not use this however lol Obviously not a great practice in enterprise lol Again this is just for home!