summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDohyung Kim <dohyung2.kim@samsung.com>2018-03-13 15:15:54 +0900
committermao xiaojuan <xiaojuan.mao@samsung.com>2018-03-22 11:23:29 +0800
commit96d5446b7cc58fd4c96e656d405fd95f639686dc (patch)
treec3fed19870cabec36ed9cec14b6409d7fd4f2384
parent323c2997ba33fc3e829c1922256e933799293914 (diff)
downloadmic-96d5446b7cc58fd4c96e656d405fd95f639686dc.tar.gz
mic-96d5446b7cc58fd4c96e656d405fd95f639686dc.tar.bz2
mic-96d5446b7cc58fd4c96e656d405fd95f639686dc.zip
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 <dohyung2.kim@samsung.com>
-rwxr-xr-xmic/imager/baseimager.py3
1 files changed, 3 insertions, 0 deletions
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