[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH master] Fix setup of LVs



NOTE: This fixes rescue mode so that it will now mount LVMs. It is 
NOTE: likely that this also effected checking for previous installs to
NOTE: upgrade.

Patch c4eb76ff3841a656828c0622c57ac0623959a04c delays the LV setup and
changes how handleVgLvs() is used. It needs to return a True when it
sets up an LV so that populate() will properly scan them for their
formats.
---
 pyanaconda/storage/devicetree.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 6b33a3b..de96de8 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1440,6 +1440,10 @@ class DeviceTree(object):
                         % device.format.mapName)
 
     def handleVgLvs(self, vg_device):
+        """ Handle setup of the LV's in the vg_device
+            return True if an LV was setup
+            return False if there was an error, or no more LV's to setup
+        """
         ret = False
         vg_name = vg_device.name
         lv_names = vg_device.lv_names
@@ -1513,6 +1517,7 @@ class DeviceTree(object):
                                                    exists=True)
                 self._addDevice(lv_device)
                 lv_device.setup()
+                ret = True
 
         return ret
 
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]