summaryrefslogtreecommitdiffstats
diff options
context:
space:
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