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 *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)