If your disk is read-only, we're just going to flat out ignore it and not offer it to you for anything. --- pyanaconda/storage/devicetree.py | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py index 4cd16cf..4db162e 100644 --- a/pyanaconda/storage/devicetree.py +++ b/pyanaconda/storage/devicetree.py @@ -596,6 +596,13 @@ class DeviceTree(object): self.addIgnoredDisk(name) return True
+ # Ignore any readonly disks + if udev_device_is_disk(info): + if iutil.get_sysfs_attr(info["sysfs_path"], 'ro') == '1': + log.debug("Ignoring read only device %s" % name) + self.addIgnoredDisk(name) + return True + # FIXME: check for virtual devices whose slaves are on the ignore list
def addUdevLVDevice(self, info):
anaconda-patches@lists.fedorahosted.org