FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-24-2010, 01:14 AM
"Brian C. Lane"
 
Default 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 07-28-2010, 08:59 PM
David Lehman
 
Default Fix setup of LVs

Ack.

On Fri, 2010-07-23 at 18:14 -0700, Brian C. Lane wrote:
> 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
>


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org