On Tue, Sep 17, 2013 at 05:18:35PM -0400, David Shea wrote:
This way we allow USB-based install media as an installation source.
---
pyanaconda/image.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index b3604ff..2c58488 100644
--- a/pyanaconda/image.py
+++ b/pyanaconda/image.py
@@ -189,7 +189,11 @@ def mountImage(isodir, tree):
def opticalInstallMedia(devicetree, mountpoint=INSTALL_TREE):
retval = None
- for dev in devicetree.getDevicesByType("cdrom"):
+ # Search for devices identified as cdrom along with any other
+ # device that has an iso9660 filesystem. This will catch USB media
+ # created from ISO images.
+ for dev in set(devicetree.getDevicesByType("cdrom") + \
+ [d for d in devicetree.devices if d.format.type == "iso9660"]):
devicetree.updateDeviceFormat(dev)
if not hasattr(dev.format, "mount"):
# no mountable media
--
1.8.3.1
Ack.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)