[PATCH] Don't allow setting a mountpoint for an fstype we cannot mount.

David Lehman dlehman at redhat.com
Fri Mar 22 16:48:41 UTC 2013


Related: rhbz#910506
---
 pyanaconda/ui/gui/spokes/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index cb25709..a13dd59 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1393,7 +1393,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         nameEntry.set_text(device_name)
 
         mountPointEntry.set_text(getattr(device.format, "mountpoint", "") or "")
-        mountPointEntry.set_sensitive(hasattr(device.format, "mountpoint"))
+        mountPointEntry.set_sensitive(device.format.mountable)
 
         # FIXME: Make sure you cannot set a label for specific btrfs subvols
         labelEntry.set_text(getattr(device.format, "label", "") or "")
-- 
1.8.1.4



More information about the anaconda-patches mailing list