Skip to content
Mate Gelei-Szego
Mate Gelei-Szego

Making huge cloud deployments a little more effective.

  • Home
  • About me
Mate Gelei-Szego

Making huge cloud deployments a little more effective.

Unlocking Ubuntu LUKS2 encryption automatically at boot

Posted on March 25, 2024April 23, 2025

Note to self. Tired of asking for a KVM every time you need to reboot your server to unlock your LUKS2 encryption?

Install prerequisites

apt-get -y install clevis clevis-tpm2 clevis-luks clevis-initramfs initramfs-tools tss2

clevis luks bind -d /dev/your-disk tpm2 '{"pcr_bank":"sha256"}'

update-initramfs -u -k all

Is it really there?

clevis luks list -d /dev/your-disk

It’d be wise to request a KVM before you actually give it a try. Just in case. Learn from my mistakes.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email

Post navigation

Previous post
Next post

Mate Gelei-Szego

Experienced cloud engineer with a background in software development, service management and finance.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • On case-sensitive file systems
  • Unlocking Ubuntu LUKS2 encryption automatically at boot
  • Install RSAT via Powershell
  • Azure DevOps – build pipeline billing extravaganza
  • Quickstart – Azure AD B2C authentication in ASP.NET Core MVC

Categories

  • Azure
  • C# / .NET
  • Note to self
  • Random
©2025 Mate Gelei-Szego | WordPress Theme by SuperbThemes