[PATCH 4/8] Update the RAID-specific UI after changing the device's disk set.
David Lehman
dlehman at redhat.com
Thu Nov 29 17:19:28 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 29643bf..8a6c539 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1395,6 +1395,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
base_size = factory.device_size
except MDRaidError as e:
log.error("failed to populate UI raid options: %s" % e)
+ self._error = e
+ self.window.set_info(Gtk.MessageType.WARNING, str(e))
+ self.window.show_all()
return
active = raid_level_features[raid_level]
@@ -1946,6 +1949,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
return
self._device_disks = disks
+ self._populate_raid(self._get_raid_level(),
+ self.builder.get_object("sizeSpinner").get_value())
def run_vg_editor(self, vg=None, name=None):
if vg:
--
1.7.7.6
More information about the anaconda-patches
mailing list