From 9f29bf6ca40696c275e92a8298f4d9fe95872130 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 27 Jun 2013 06:49:41 +0300 Subject: [PATCH] raw: export file-system UUIDs 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 --- mic/imager/raw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mic/imager/raw.py b/mic/imager/raw.py index 2ac8e46..407d984 100644 --- a/mic/imager/raw.py +++ b/mic/imager/raw.py @@ -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 -- 2.7.4