summaryrefslogtreecommitdiffstats
path: root/pyanaconda
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2011-10-19 14:39:39 -0500
committerDavid Lehman <dlehman@redhat.com>2011-10-25 11:16:02 -0500
commit262dad89c55b70b88646f3d52f3d27e1a7cd9dd5 (patch)
treee6bf486d8821f52c11cf70a78d91750be88183cf /pyanaconda
parenta84c4a35eddf84977e35a76ac571197591cec2c7 (diff)
downloadanaconda-262dad89c55b70b88646f3d52f3d27e1a7cd9dd5.tar.gz
anaconda-262dad89c55b70b88646f3d52f3d27e1a7cd9dd5.tar.xz
anaconda-262dad89c55b70b88646f3d52f3d27e1a7cd9dd5.zip
Honor fsprofile argument even for existing devices. (#747417)
Diffstat (limited to 'pyanaconda')
-rw-r--r--pyanaconda/kickstart.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 35a3d0133..229b67a18 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: