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 02-22-2010, 08:10 PM
David Lehman
 
Default Fix creation of encrypted md members and pvs in kickstart. (#567396)

---
kickstart.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 64e372d..8ae80f5 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -831,6 +831,11 @@ class RaidData(commands.raid.F12_RaidData):
# if member is using --onpart, use original device
member = anaconda.ksdata.onPart.get(member, member)
dev = devicetree.getDeviceByName(member)
+ if dev.format.type == "luks":
+ try:
+ dev = devicetree.getChildren(dev)[0]
+ except IndexError:
+ dev = None
if not dev:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Tried to use undefined partition %s in RAID specification" % member)

@@ -958,6 +963,11 @@ class VolGroupData(commands.volgroup.FC3_VolGroupData):
# if pv is using --onpart, use original device
pv = anaconda.ksdata.onPart.get(pv, pv)
dev = devicetree.getDeviceByName(pv)
+ if dev.format.type == "luks":
+ try:
+ dev = devicetree.getChildren(dev)[0]
+ except IndexError:
+ dev = None
if not dev:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Tried to use undefined partition %s in Volume Group specification" % pv)

--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-22-2010, 09:53 PM
David Lehman
 
Default Fix creation of encrypted md members and pvs in kickstart. (#567396)

---
kickstart.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 64e372d..7a00921 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -831,6 +831,11 @@ class RaidData(commands.raid.F12_RaidData):
# if member is using --onpart, use original device
member = anaconda.ksdata.onPart.get(member, member)
dev = devicetree.getDeviceByName(member)
+ if dev and dev.format.type == "luks":
+ try:
+ dev = devicetree.getChildren(dev)[0]
+ except IndexError:
+ dev = None
if not dev:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Tried to use undefined partition %s in RAID specification" % member)

@@ -958,6 +963,11 @@ class VolGroupData(commands.volgroup.FC3_VolGroupData):
# if pv is using --onpart, use original device
pv = anaconda.ksdata.onPart.get(pv, pv)
dev = devicetree.getDeviceByName(pv)
+ if dev and dev.format.type == "luks":
+ try:
+ dev = devicetree.getChildren(dev)[0]
+ except IndexError:
+ dev = None
if not dev:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Tried to use undefined partition %s in Volume Group specification" % pv)

--
1.6.6

_______________________________________________
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 01:38 PM.

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