summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-02-01 12:48:00 -0600
committerDavid Lehman <dlehman@redhat.com>2008-02-05 10:41:24 -0600
commita011e85bc3bd8a79e39f8f8c6f666d38953c3b4f (patch)
tree6bb0e04545e9a63813ae4db8214171d0a3a188fa /rescue.py
parent46af5960c9bcb86517d98d24c295d3aa44ca69d1 (diff)
downloadanaconda-a011e85bc3bd8a79e39f8f8c6f666d38953c3b4f.tar.gz
anaconda-a011e85bc3bd8a79e39f8f8c6f666d38953c3b4f.tar.xz
anaconda-a011e85bc3bd8a79e39f8f8c6f666d38953c3b4f.zip
Add UI for passphrase prompting to rescue mode.
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/rescue.py b/rescue.py
index 1f981ea9c..58a6d1753 100644
--- a/rescue.py
+++ b/rescue.py
@@ -23,7 +23,7 @@
import upgrade
from snack import *
from constants_text import *
-from text import WaitWindow, OkCancelWindow, ProgressWindow, stepToClasses
+from text import WaitWindow, OkCancelWindow, ProgressWindow, PassphraseEntryWindow, stepToClasses
from flags import flags
import sys
import os
@@ -78,6 +78,12 @@ class RescueInterface:
else:
return OkCancelWindow(self.screen, title, text)
+ def passphraseEntryWindow(self, device):
+ w = PassphraseEntryWindow(self.screen, device)
+ (passphrase, isglobal) = w.run()
+ w.pop()
+ return (passphrase, isglobal)
+
def __init__(self, screen):
self.screen = screen