[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

PATCH: only allow selection of devices known by booty as bootloader target disk



Hi All,

As I do not have any commit access to git as of yet, I'm sending my patches to the list for now.

The attached patch only allows selection of devices known by booty as bootloader target disk, fixing the crash reported in bug 454135

Regards,

Hans
diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index c1366f7..714d04a 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -365,6 +365,8 @@ class PartitionTypeWindow(InstallWindow):
         else:
             defaultBoot = None
         for disk in self.diskset.disks.values():
+            if not disk.dev.path[5:] in self.anaconda.id.bootloader.drivelist:
+                continue
             size = partedUtils.getDeviceSizeMB(disk.dev)
             dispstr = "%s %8.0f MB %s" %(disk.dev.path[5:], size, disk.dev.model)
             i = bootstore.append(None)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]