[blivet:master 12/17] Have TmpFS.resizeArgs() use default options if options not set.

mulhern amulhern at redhat.com
Tue Jan 6 20:38:14 UTC 2015


Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index f5d7b21..7dd0e2d 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1660,7 +1660,7 @@ class TmpFS(NoDevFS):
     def resizeArgs(self):
         # a live tmpfs mount can be resized by remounting it with
         # the mount command
-        options = (o for o in ("remount", self._sizeOption(self.targetSize), self.mountopts) if o)
+        options = ("remount", self._sizeOption(self.targetSize), self.mountopts or ",".join(self.defaultMountOptions))
         return ['-o', ",".join(options), self._type, self._mountpoint]
 
     def doResize(self):
-- 
1.9.3



More information about the anaconda-patches mailing list