| Summary: | encrypted swap using luks prompts for passphrase at boot | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | bugz |
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | anaconda-maint-list, bugz, dennis, dshea, g.kaviyarasu, harald, johannbg, jonathan, lnykryn, msekleta, plautrba, systemd-maint, vanmeeuwen+fedora, vpavlin, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-29 14:02:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
bugz
2013-09-20 19:50:43 UTC
What is your /etc/crypttab? Note that the "swap" crypttab option needs to be used for your swap crypt partition so that a random key is used and the image initialized with mkswap. Did you create the encrypted partition "manually" in the installer? If not there's probably something to fix in the installer to add the "swap" option to the entry. I have reproduced this today. Disk was partitioned by "standard partition". DID NOT tick the "Encrypt my data. I'll set a passphrase later" box. Made partitions /boot (Reformat), /(Reformat), swap(Encrypt,Reformat). prompted for disk passphrase completed install At boot I am prompted for the disk passphrase. (In reply to bugz from comment #2) > prompted for disk passphrase > completed install > > At boot I am prompted for the disk passphrase. so, I guess /etc/crypttab does not have /dev/urandom as the key file and swap as the option. Reassigning to anaconda, which does the initial setup. anaconda does not set up encrypted swap in this way. The "encrypt" option in partitioning sets up encrypted partitions that are unlocked at boot. To use encrypted swap in the way you describe you will need to create a /etc/crypttab configuration after installation (or in a %post section of a kickstart) as described in comment 1. |