[PATCH 1/5] Don't save luks keys unless installer_mode flag is set. (#996118)
David Lehman
dlehman at redhat.com
Wed Aug 14 23:04:11 UTC 2013
---
blivet/__init__.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index 5097d10..cb31b6d 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -388,11 +388,12 @@ class Blivet(object):
"""
log.info("resetting Blivet (version %s) instance %s" % (__version__, self))
- # save passphrases for luks devices so we don't have to reprompt
- self.encryptionPassphrase = None
- for device in self.devices:
- if device.format.type == "luks" and device.format.exists:
- self.__luksDevs[device.format.uuid] = device.format._LUKS__passphrase
+ if flags.installer_mode:
+ # save passphrases for luks devices so we don't have to reprompt
+ self.encryptionPassphrase = None
+ for device in self.devices:
+ if device.format.type == "luks" and device.format.exists:
+ self.__luksDevs[device.format.uuid] = device.format._LUKS__passphrase
if self.ksdata:
self.config.update(self.ksdata)
--
1.8.1.4
More information about the anaconda-patches
mailing list