[PATCH] Skip non-udev devices as optical media candidates (#1009809)

David Shea dshea at redhat.com
Mon Sep 23 21:31:13 UTC 2013


---
 pyanaconda/image.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index 5fe3833..a7422ec 100644
--- a/pyanaconda/image.py
+++ b/pyanaconda/image.py
@@ -193,6 +193,10 @@ def opticalInstallMedia(devicetree, mountpoint=INSTALL_TREE):
     # created from ISO images.
     for dev in set(devicetree.getDevicesByType("cdrom") + \
             [d for d in devicetree.devices if d.format.type == "iso9660"]):
+        if not dev.sysfsPath:
+            # No udev information
+            continue
+
         devicetree.updateDeviceFormat(dev)
         if not hasattr(dev.format, "mount"):
             # no mountable media
-- 
1.8.3.1



More information about the anaconda-patches mailing list