+++ This bug was initially created as a clone of Bug #679166 +++
Description of problem:
Documentation for kickstart configuration for partitions says there is a --passphrase parameter to specify each partition's passphrase.
However after installation all partitions are mounted with the same passphrase as if it was a global default
Version-Release number of selected component (if applicable):
pykickstart 1.77-2
anaconda 13.22-1
How reproducible:
always
Steps to Reproduce:
1. Create a kickstart configuration file with a set of partitions where at least two are encrypted and define a different passphrase
2. make an unattended installation with said kickstart
Actual results:
At boot, there is a password prompt for mounting a partition. If entered correctly, all partitions are mounted and boot process continiues.
Expected results:
It should be needed to enter all passphrases in order to continue.
Additional info:
--- Additional comment from tsukebumi@gmail.com on 2011-02-21 14:26:18 EST ---
Created attachment 479981[details]
example kickstart file
--- Additional comment from clumens@redhat.com on 2011-02-21 16:46:59 EST ---
*** Bug 679165 has been marked as a duplicate of this bug. ***
--- Additional comment from dlehman@redhat.com on 2011-02-21 17:50:31 EST ---
Created attachment 480014[details]
f14 updates to not overwrite passphrases with first/global passphrase
Place the attached updates.img file in os/images/ in your install directory to get it picked up and used automatically. We don't do official fixes for the installer for Fedora 14 after the initial release, but this updates image should fix the problem you have seen.
Let me know if this doesn't solve your problem.

If a user creates multiple encrypted devices in kickstart, the first passphrase we find becomes the default/global passphrase in case any other encrypted devices have no passphrase specified. We are erroneously overwriting all devices' passphrases with the global/default when we should only be apply the default to those devices for which no passphrase has been set.
Similarly, if multiple encrypted devices are created in the GUI and a global passphrase is established by the user after having specified passphrases for some newly encrypted devices we should only use the global passphrase for that and subsequent devices instead of overwriting the passphrases already established for previously-created devices.