[PATCH 2/2] Suggest names for btrfs mountpoints

Brian C. Lane bcl at redhat.com
Fri May 10 19:11:26 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

It was not populating the BTRFS entry for _device_name_dict so that if
you added a /home and switched from LVM to BTRFS it would change the
name to 'root' from 'home' and then reset itself because there wasn't
enough room.

Related: rhbz#959707
---
 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 88e89b7..0f270b3 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1776,7 +1776,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
             if _type == device_type:
                 self._device_name_dict[_type] = device_name
                 continue
-            elif _type not in (DEVICE_TYPE_LVM, DEVICE_TYPE_MD):
+            elif _type not in (DEVICE_TYPE_LVM, DEVICE_TYPE_MD, DEVICE_TYPE_BTRFS):
                 continue
 
             swap = (device.format.type == "swap")
-- 
1.8.1.4



More information about the anaconda-patches mailing list