Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to set up Ubuntu full disk encryption using preseeding. I was able to set things up correctly following the preseed file presented here. But I do not want to provide the default password in the preseed file. Is there a way to let ubiquity fall to the screen that asks for the encryption passphrase just like it does when the username is not provided in the preseed file?

When I try to leave the passphrase option empty in the preseed file, I get an error in the installer saying "An error occured while creating the keyfile".

share|improve this question

1 Answer 1

I think the way to go here is to set the passphrase in the preseed. This way the disk is encrypted with a known passphrase. Then after the install. Prompt the user to "rekey". The Luks encryption scheme has a few passphrase slots by default. The one your setting up in the preseed can be removed as part of the rekeying action.

More here:

How to change the password of an encrypted LVM system (done with the alternate Installation)?

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.