diff options
author | Dohyung Kim <dohyung2.kim@samsung.com> | 2018-03-13 15:15:54 +0900 |
---|---|---|
committer | mao xiaojuan <xiaojuan.mao@samsung.com> | 2018-03-22 11:23:29 +0800 |
commit | 96d5446b7cc58fd4c96e656d405fd95f639686dc (patch) | |
tree | c3fed19870cabec36ed9cec14b6409d7fd4f2384 | |
parent | 323c2997ba33fc3e829c1922256e933799293914 (diff) | |
download | mic-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-x | mic/imager/baseimager.py | 3 |
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 |