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 Development

 
 
LinkBack Thread Tools
 
Old 10-20-2011, 03:34 PM
David Lehman
 
Default Honor fsprofile argument even for existing devices. (#747417)

---
pyanaconda/kickstart.py | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 35a3d01..229b67a 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -498,6 +498,7 @@ class LogVolData(commands.logvol.F15_LogVolData):
format = getFormat(type,
mountpoint=self.mountpoint,
label=self.label,
+ fsprofile=self.fsprofile,
mountopts=self.fsopts)
if not format:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="The "%s" filesystem type is not supported." % type)
@@ -531,9 +532,6 @@ class LogVolData(commands.logvol.F15_LogVolData):
maxsize=self.maxSizeMB,
percent=self.percent)

- if self.fsprofile and hasattr(request.format, "fsprofile"):
- request.format.fsprofile = self.fsprofile
-
storage.createDevice(request)

if self.encrypted:
@@ -797,6 +795,7 @@ class PartitionData(commands.partition.F12_PartData):
kwargs["format"] = getFormat(type,
mountpoint=self.mountpoint,
label=self.label,
+ fsprofile=self.fsprofile,
mountopts=self.fsopts)
if not kwargs["format"]:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="The "%s" filesystem type is not supported." % type)
@@ -859,9 +858,6 @@ class PartitionData(commands.partition.F12_PartData):

request = storage.newPartition(**kwargs)

- if self.fsprofile and hasattr(request.format, "fsprofile"):
- request.format.fsprofile = self.fsprofile
-
storage.createDevice(request)

if self.encrypted:
@@ -962,6 +958,7 @@ class RaidData(commands.raid.F15_RaidData):
# Now get a format to hold a lot of these extra values.
kwargs["format"] = getFormat(type,
label=self.label,
+ fsprofile=self.fsprofile,
mountpoint=self.mountpoint,
mountopts=self.fsopts)
if not kwargs["format"]:
@@ -1002,9 +999,6 @@ class RaidData(commands.raid.F15_RaidData):
except ValueError as e:
raise KickstartValueError, formatErrorMsg(self.lineno, msg=str(e))

- if self.fsprofile and hasattr(request.format, "fsprofile"):
- request.format.fsprofile = self.fsprofile
-
storage.createDevice(request)

if self.encrypted:
--
1.7.3.4

_______________________________________________
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 03:22 PM.

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