summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-02-05 10:38:53 -0600
committerDavid Lehman <dlehman@redhat.com>2008-02-05 10:41:24 -0600
commitdb2e0bbe682f6b5ae6fe21dc2224cf57d7fbb46d (patch)
treef67294ae2d7fa3e06b1a3433c3bb12cee1377e4f
parent45467bbfaf202020864eaba10c66d2f3339c2ba9 (diff)
downloadanaconda-db2e0bbe682f6b5ae6fe21dc2224cf57d7fbb46d.tar.gz
anaconda-db2e0bbe682f6b5ae6fe21dc2224cf57d7fbb46d.tar.xz
anaconda-db2e0bbe682f6b5ae6fe21dc2224cf57d7fbb46d.zip
Only look for encrypted devices in rescue mode.
-rw-r--r--upgrade.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/upgrade.py b/upgrade.py
index f691f69fd..d0586c1af 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -135,7 +135,8 @@ def findExistingRoots(anaconda, upgradeany = 0):
anaconda.id.diskset.openDevices()
- anaconda.id.partitions.getEncryptedDevices(anaconda.id.diskset)
+ if anaconda.rescue:
+ anaconda.id.partitions.getEncryptedDevices(anaconda.id.diskset)
rootparts = anaconda.id.diskset.findExistingRootPartitions(upgradeany = upgradeany)
# close the devices to make sure we don't leave things sitting open