raw: export file-system UUIDs
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 27 Jun 2013 03:49:41 +0000 (06:49 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 27 Jun 2013 03:58:39 +0000 (06:58 +0300)
This will be useful when we want to create fstab entries ourselfs by using the
installer framework.

Change-Id: Ibc425517888d45a86b73e8c73abba5639eb7e093
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/imager/raw.py

index 2ac8e46..407d984 100644 (file)
@@ -358,7 +358,9 @@ class RawImageCreator(BaseImageCreator):
     def _get_post_scripts_env(self, in_chroot):
         env = BaseImageCreator._get_post_scripts_env(self, in_chroot)
 
+        # Export the file-system UUIDs and partition UUIDs (AKA PARTUUIDs)
         for p in self.__instloop.partitions:
+            env.update(self._set_part_env(p['ks_pnum'], "UUID", p['uuid']))
             env.update(self._set_part_env(p['ks_pnum'], "PARTUUID", p['partuuid']))
 
         return env