From 96d5446b7cc58fd4c96e656d405fd95f639686dc Mon Sep 17 00:00:00 2001 From: Dohyung Kim Date: Tue, 13 Mar 2018 15:15:54 +0900 Subject: Added ATTACHMENT_PATHS env and IMG_DIR_PATH env Added enviorment veriables to access attachment files and image directory from ks post script. - ATTACHMENT_PATHS: attachemt file paths - IMG_DIR_PATH: a directory path located image files Change-Id: Ia3f409ec8b9c784dba8d5b0baee9b6d9dada3baf Signed-off-by: Dohyung Kim --- mic/imager/baseimager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mic/imager/baseimager.py b/mic/imager/baseimager.py index 022d955..e29e510 100755 --- a/mic/imager/baseimager.py +++ b/mic/imager/baseimager.py @@ -511,6 +511,9 @@ class BaseImageCreator(object): if not in_chroot: env["INSTALL_ROOT"] = self._instroot env["IMG_NAME"] = self._name + env['ATTACHMENT_PATHS'] = ' '.join(self._attachment) + if self._imgdir: + env['IMG_DIR_PATH'] = str(self._imgdir) return env -- cgit v1.2.3