Hack of the day: easily configure Linux hosts to reboot once or always without requiring a decryption key

By | October 28, 2022

I have LUKS encryption configured on all of my Linux desktops and laptops, which is a pain when I need to reboot one remotely, since it prompts for the decryption key and won’t finish rebooting until the key is entered.

To solve, this, I’ve written keyless-entry, which allows the user to easily configure a LUKS-encrypted Linux machine to boot without the decryption key being entered manually, either every time or just for the next reboot.

This solution is based on the technique provided by Tobias on AskUbuntu, but it’s more user-friendly since it handles all the configuration stuff for you automatically and provides the ability to only bypass the key prompt on the next reboot.

Share and enjoy!

Share

Leave a Reply

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

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.