[rhel6-branch] Pass mountopts to swap options (#857517)
Brian C. Lane
bcl at redhat.com
Fri Jun 28 21:16:30 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
swap is based on DeviceFormat, not FS, so mountopts weren't being
handled. It has its own options property though, so just pass on the
mountopts to options.
Resolves: rhbz#857517
---
storage/formats/swap.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/storage/formats/swap.py b/storage/formats/swap.py
index 824c501..de5c30a 100644
--- a/storage/formats/swap.py
+++ b/storage/formats/swap.py
@@ -64,6 +64,8 @@ class SwapSpace(DeviceFormat):
self.priority = kwargs.get("priority")
self.label = kwargs.get("label")
+ if "mountopts" in kwargs:
+ self.options = kwargs.get("mountopts")
def __str__(self):
s = DeviceFormat.__str__(self)
--
1.8.1.4
More information about the anaconda-patches
mailing list