[PATCH 1/3] Set timeout=0 option in /etc/crypttab by default. (#949702)

David Lehman dlehman at redhat.com
Tue Apr 9 17:57:16 UTC 2013


---
 blivet/formats/luks.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/blivet/formats/luks.py b/blivet/formats/luks.py
index ab12eba..902b326 100644
--- a/blivet/formats/luks.py
+++ b/blivet/formats/luks.py
@@ -80,6 +80,12 @@ class LUKS(DeviceFormat):
                 # default to the max (512 bits) for aes-xts
                 self.key_size = 512
 
+        # default to no timeout when prompting for a passphrase (post-install)
+        if self.options is None:
+            self.options = "timeout=0"
+        elif "timeout=" not in self.options:
+            self.options += ",timeout=0"
+
         # FIXME: these should both be lists, but managing them will be a pain
         self.__passphrase = kwargs.get("passphrase")
         self._key_file = kwargs.get("key_file")
-- 
1.8.1.4



More information about the anaconda-patches mailing list