[rhel7/blivet] explicitly detect iso9660 on a disk (#903158)

Brian C. Lane bcl at redhat.com
Fri Feb 1 00:22:11 UTC 2013

From: "Brian C. Lane" <bcl at redhat.com>

Previously we were relying on parted to raise an error when trying to
examine a disk with an iso9660 image written to it. The reason for this
was that isohybrid was writing an incorrect mbr, which has now been
fixed. parted will now return the dos mbr from the hybrid iso.

This skips handleUdevDiskLabel if the device format is iso9660, allowing
it to be selected instead of the mbr.
 pyanaconda/storage/devicetree.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 9d902aa..d1f60f2 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1580,7 +1580,8 @@ class DeviceTree(object):
         # If not, see if the user would like to create one.
         # XXX ignore disklabels on multipath or biosraid member disks
         if not udev_device_is_biosraid_member(info) and \
-           not udev_device_is_multipath_member(info):
+           not udev_device_is_multipath_member(info) and \
+           format_type != "iso9660":
             self.handleUdevDiskLabelFormat(info, device)
             if device.partitioned or self.isIgnored(info) or \
                (not device.partitionable and

More information about the anaconda-patches mailing list