[anaconda][PATCH 3/3] Add tmpfs support (#918621)

Martin Kolman mkolman at redhat.com
Wed Oct 30 13:19:57 UTC 2013


Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 pyanaconda/kickstart.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 8aefff5..9253c03 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1007,7 +1007,10 @@ class PartitionData(commands.partition.F18_PartData):
                                      mountpoint=self.mountpoint,
                                      label=self.label,
                                      fsprofile=self.fsprofile,
-                                     mountopts=self.fsopts)
+                                     mountopts=self.fsopts,
+                                     size=self.size,
+                                     grow=self.grow,
+                                     maxsize=self.maxSizeMB)
         if not kwargs["format"].type:
             raise KickstartValueError, formatErrorMsg(self.lineno, msg="The \"%s\" filesystem type is not supported." % type)
 
@@ -1062,6 +1065,11 @@ class PartitionData(commands.partition.F18_PartData):
                             msg="Invalid target size (%d) for device %s" % (self.size, device.name)))
 
             devicetree.registerAction(ActionCreateFormat(device, kwargs["format"]))
+        # tmpfs mounts are not disks and don't occupy a disk partition,
+        # so handle them here
+        elif self.fstype == "tmpfs":
+            request = storage.newTmpFS(**kwargs)
+            storage.createDevice(request)
         else:
             # If a previous device has claimed this mount point, delete the
             # old one.
-- 
1.8.3.1



More information about the anaconda-patches mailing list