[PATCH rhel7-branch] Add support for specifying arbitrary mkfs options.
Chris Lumens
clumens at redhat.com
Tue Jun 30 17:31:35 UTC 2015
Most of the work for this is done in blivet. All that's really needed in
anaconda is passing values from pykickstart to blivet.
Resolves: rhbz#1217110
---
pyanaconda/kickstart.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 3350ab9..104780b 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -504,7 +504,8 @@ class BTRFSData(commands.btrfs.RHEL7_BTRFSData):
mountpoint=self.mountpoint,
metaDataLevel=self.metaDataLevel,
dataLevel=self.dataLevel,
- parents=members)
+ parents=members,
+ createOptions=self.mkfsopts)
storage.createDevice(request)
@@ -931,6 +932,7 @@ class LogVolData(commands.logvol.RHEL7_LogVolData):
mountpoint=self.mountpoint,
label=self.label,
fsprofile=self.fsprofile,
+ createOptions=self.mkfsopts,
mountopts=self.fsopts)
if not fmt.type and not self.thin_pool:
raise KickstartValueError(formatErrorMsg(self.lineno,
@@ -1225,6 +1227,7 @@ class PartitionData(commands.partition.RHEL7_PartData):
label=self.label,
fsprofile=self.fsprofile,
mountopts=self.fsopts,
+ createOptions=self.mkfsopts,
size=size)
if not kwargs["fmt"].type:
raise KickstartValueError(formatErrorMsg(self.lineno,
@@ -1445,7 +1448,8 @@ class RaidData(commands.raid.RHEL7_RaidData):
label=self.label,
fsprofile=self.fsprofile,
mountpoint=self.mountpoint,
- mountopts=self.fsopts)
+ mountopts=self.fsopts,
+ createOptions=self.mkfsopts)
if not kwargs["fmt"].type:
raise KickstartValueError(formatErrorMsg(self.lineno,
msg=_("The \"%s\" file system type is not supported.") % ty))
--
2.4.3
More information about the anaconda-patches
mailing list