[rhel6-branch 2/2] Write fsoptions to anaconda-ks.cfg (#1002924)
Brian C. Lane
bcl at redhat.com
Wed Jun 4 21:50:59 UTC 2014
Write out --fsoptions when writing the kickstart file, except on
/boot/efi/ which is set to a constant by kickstart.py
Resolves: rhbz#1002924
---
storage/formats/fs.py | 2 ++
storage/formats/swap.py | 2 ++
2 files changed, 4 insertions(+)
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index c2eb731..e32a228 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -905,6 +905,8 @@ class FS(DeviceFormat):
if self.fsprofile:
f.write(" --fsprofile=\"%s\"" % self.fsprofile)
+ if self.mountpoint != "/boot/efi/" and self.mountopts:
+ f.write(" --fsoptions=\"%s\"" % self.mountopts)
class Ext2FS(FS):
""" ext2 filesystem. """
diff --git a/storage/formats/swap.py b/storage/formats/swap.py
index de5c30a..de04258 100644
--- a/storage/formats/swap.py
+++ b/storage/formats/swap.py
@@ -185,6 +185,8 @@ class SwapSpace(DeviceFormat):
if self.label:
f.write(" --label=\"%s\"" % self.label)
+ if self.options:
+ f.write(" --fsoptions=\"%s\"" % self.options)
register_device_format(SwapSpace)
--
1.9.3
More information about the anaconda-patches
mailing list