Prompt for LUKS passphrase during Kickstart on RHEL 7.4

Latest response

I've read some documentation (from RHEL 6 and 7) that seems to indicate one can omit the --passphrase option on a part line like:

part pv.sata --fstype="lvmpv" --size=304220 --ondisk=sda --encrypted

My understanding was this would cause Anaconda to prompt for an encryption passphrase during a Kickstart-automated install, removing the need to include a plaintext passphrase in the Kickstart file.

I've tried omitting --passphrase entirely and including it but leaving it empty and in both cases Anaconda failed because the passphrase was not provided. Is there some way to get the desired behaviour in RHEL 7.4?

Responses

I am running into the same issue. I don't really want to hardcode a password since they need to be set on a per-system basis.

A bug report describing this issue has been open on the Red Hat Bugzilla since March of 2017 without any substantive progress.

I've just opened a Premium Severity 1 Ticket with RHN... They are trying to lower the severity on me, but I think this is a HUGE issue. Their workaround is to HARDCODE the password in the kickstart.... That's a serious security violation.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.