summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-10-30 16:05:51 -0500
committerDavid Lehman <dlehman@redhat.com>2008-10-30 16:05:51 -0500
commit08d7916a41f271515266ed7dfaf01977c773ad19 (patch)
tree266ee1fc6cb4644924229565074bc36411387c39
parent1e5bbb5fd61160ebac5f917662f05a2a07fb3627 (diff)
downloadanaconda-08d7916a41f271515266ed7dfaf01977c773ad19.tar.gz
anaconda-08d7916a41f271515266ed7dfaf01977c773ad19.tar.xz
anaconda-08d7916a41f271515266ed7dfaf01977c773ad19.zip
Revert "Don't write luks passphrases to anaconda-ks.cfg. (#468907)"
This reverts commit 55833649b14b1118dabb050a8629aa767e58a8e4. I only covered the partition case, missing raid and logvol.
-rw-r--r--partitions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/partitions.py b/partitions.py
index 4c82aa4f3..f75eff9fe 100644
--- a/partitions.py
+++ b/partitions.py
@@ -1363,7 +1363,8 @@ class Partitions:
# device encryption
if request.encryption:
- args.append("--encrypted")
+ args.extend(["--encrypted",
+ "--passphrase=\"%s\"" % (request.encryption.passphrase,)])
# preexisting only
if request.type == REQUEST_PREEXIST and request.device: