Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know PGP has an option to set a parameter so that the next reboot won't ask for the encryption password.

I thought I saw the same functionality with LUKS/cryptsetup

But, as it always happens, When I need it I cant find it.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The password prompt during reboot isn't technically provided by cryptsetup, but by a script running within the boot-time initrd, which then calls cryptsetup with the password you supply.

Debian, at the very least, doesn't provide any such option, but you can modify your initrd to do whatever you want during the boot process.

cryptsetup has no facility for mounting a LUKS-formatted block device without a password, but it can accept a key file. This could be the basis for automatic boot without a passphrase prompt. Beware that if you store such a file on an unencrypted file system it can likely be easily recovered with undelete tools unless you badblocks and reformat whatever device it is stored on or something similar.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.