Check for installerfw fstab plugin in BaseImageCreator
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 14 Nov 2013 14:13:58 +0000 (15:13 +0100)
committerGui Chen <gui.chen@intel.com>
Fri, 22 Nov 2013 02:54:25 +0000 (21:54 -0500)
Change-Id: I3d2bb9cbcf93f5c3a1974205ee70123b6319f882
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
mic/imager/baseimager.py
mic/imager/raw.py

index 59aaf5b..781e0b8 100644 (file)
@@ -691,6 +691,10 @@ class BaseImageCreator(object):
             raise CreatorError("No repositories specified")
 
     def __write_fstab(self):
+        if kickstart.use_installerfw(self.ks, "fstab"):
+            # The fstab file will be generated by installer framework scripts
+            # instead.
+            return None
         fstab_contents = self._get_fstab()
         if fstab_contents:
             fstab = open(self._instroot + "/etc/fstab", "w")
index 40a4ac7..a849a56 100644 (file)
@@ -77,11 +77,6 @@ class RawImageCreator(BaseImageCreator):
         BaseImageCreator.configure(self, repodata)
 
     def _get_fstab(self):
-        if kickstart.use_installerfw(self.ks, "fstab"):
-            # The fstab file will be generated by installer framework scripts
-            # instead.
-            return None
-
         s = ""
         for mp in self.__instloop.mountOrder:
             p = None