[PATCH] Include tmpfs mounts in post-install kickstart (#1061063)

Martin Kolman mkolman at redhat.com
Fri Feb 21 13:48:33 UTC 2014


Previously tmpfs mounts created during installation have
been left out of the post-install kickstart file in
/root/anaconda-ks.cfg. This is now fixed.

Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 blivet/__init__.py | 1 +
 blivet/devices.py  | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/blivet/__init__.py b/blivet/__init__.py
index 77f9589..00845bc 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -2098,6 +2098,7 @@ class Blivet(object):
 
         # custom storage
         ksMap = {PartitionDevice: ("PartData", "partition"),
+                 TmpFSDevice: ("PartData", "partition"),
                  LVMLogicalVolumeDevice: ("LogVolData", "logvol"),
                  LVMVolumeGroupDevice: ("VolGroupData", "volgroup"),
                  MDRaidArrayDevice: ("RaidData", "raid"),
diff --git a/blivet/devices.py b/blivet/devices.py
index a607c1b..247d070 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3797,6 +3797,12 @@ class TmpFSDevice(NoDevice):
     def fstabSpec(self):
         return self._type
 
+    def populateKSData(self, data):
+        super(TmpFSDevice, self).populateKSData(data)
+        # we need to supply a format to ksdata, otherwise the kickstart line
+        # would include --noformat, resulting in an invalid command combination
+        data.format = self.format
+
 
 class FileDevice(StorageDevice):
     """ A file on a filesystem.
-- 
1.8.5.3



More information about the anaconda-patches mailing list