[PATCH 7/9] The device type of preexisting devices cannot be changed.
David Lehman
dlehman at redhat.com
Mon Aug 20 14:20:40 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 5c5fefb..63100c5 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -694,6 +694,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
elif device.type.startswith("btrfs"):
typeCombo.set_active(DEVICE_TYPE_BTRFS)
+ # you can't change the type of an existing device
+ typeCombo.set_sensitive(not device.exists)
+
# FIXME: What do we do if we can't figure it out?
model = fsCombo.get_model()
for i in range(0, len(model)):
--
1.7.7.6
More information about the anaconda-patches
mailing list