[PATCH 2/2] It's possible for mountpoint to be None (#885279).

Chris Lumens clumens at redhat.com
Mon Dec 10 20:26:25 UTC 2012


---
 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 9318481..048b0dc 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1770,7 +1770,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                                      AUTOPART_TYPE_BTRFS: DEVICE_TYPE_BTRFS}
         device_type = device_type_from_autopart[self.data.autopart.type]
         if (device_type != DEVICE_TYPE_PARTITION and
-            (mountpoint.startswith("/boot") or
+            ((mountpoint and mountpoint.startswith("/boot")) or
              fstype in partition_only_format_types)):
             device_type = DEVICE_TYPE_PARTITION
 
-- 
1.7.11.2



More information about the anaconda-patches mailing list