baseimager: export INSTALLERFW_MOUNT_PREFIX
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 26 Jun 2013 09:15:28 +0000 (12:15 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 26 Jun 2013 09:15:28 +0000 (12:15 +0300)
commit246feac2d652614ee2dbc454957ec284ea2567f2
tree4ee7f9d6cbb552f7afbd68b473dbfee99bae4f8e
parente0f308119a330dc2d017cf8839ba788183bc8d47
baseimager: export INSTALLERFW_MOUNT_PREFIX

The installer framework scripts sometimes need to know the real current path
where the partitions are mounted. In MIC environment, the real path is the same
as the mountpoint, except when we are not in chroot, in which case the real
path has a prefix. Export this information in the 'INSTALLERFW_MOUNT_PREFIX'
variable.

In other environments, like pc-installer, the current path may be different,
and pc-installer will export it in 'INSTALLERFW_MOUNT_PREFIX'.

This will allow us writing configuration scripts which will work in both MIC
and pc-installer environments.

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