[PATCH 5/9] Don't include btrfs device names in the list since they have no nodes.

David Lehman dlehman at redhat.com
Wed Jul 25 21:48:30 UTC 2012


---
 pyanaconda/storage/devicetree.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index cd45cf6..0ecbb95 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -354,6 +354,7 @@ class DeviceTree(object):
         # don't include "req%d" partition names
         if ((newdev.type != "partition" or
              not newdev.name.startswith("req")) and
+            newdev.type != "btrfs volume" and
             newdev.name not in self.names):
             self.names.append(newdev.name)
         log.info("added %s %s (id %d) to device tree" % (newdev.type,
-- 
1.7.7.6



More information about the anaconda-patches mailing list