summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-06-30 17:35:07 -0500
committerDavid Lehman <dlehman@redhat.com>2009-07-01 12:53:25 -0500
commit4732e78775ce74362c4afc8979c54f5190b1ef76 (patch)
treed5b005d00e6db3b5eea29dbfed23fe74e6074f49 /yuminstall.py
parentb7a5272ec3164a48cf3546acb78a14c601c2fddf (diff)
downloadanaconda-4732e78775ce74362c4afc8979c54f5190b1ef76.tar.gz
anaconda-4732e78775ce74362c4afc8979c54f5190b1ef76.tar.xz
anaconda-4732e78775ce74362c4afc8979c54f5190b1ef76.zip
Update code that checks for devices that contain install media.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 70ed98ae9..fb89281e3 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1434,12 +1434,9 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
# If there are any protected partitions we want to mount, create their
# mount points now.
- protected = anaconda.id.storage.protectedPartitions
- if protected:
- for protectedDev in protected:
- request = anaconda.id.storage.devicetree.getDeviceByName(protectedDev)
- if request and request.format.mountpoint:
- dirList.append(request.format.mountpoint)
+ for protected in anaconda.id.storage.protectedDevices:
+ if getattr(protected.format, "mountpoint", None):
+ dirList.append(protected.format.mountpoint)
for i in dirList:
try: