diff options
author | David Lehman <dlehman@redhat.com> | 2009-06-30 17:35:07 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-07-01 12:53:25 -0500 |
commit | 4732e78775ce74362c4afc8979c54f5190b1ef76 (patch) | |
tree | d5b005d00e6db3b5eea29dbfed23fe74e6074f49 /yuminstall.py | |
parent | b7a5272ec3164a48cf3546acb78a14c601c2fddf (diff) | |
download | anaconda-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.py | 9 |
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: |