raw / baseimager: export more installer fw variables
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 27 Sep 2013 07:35:44 +0000 (10:35 +0300)
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>
Mon, 21 Oct 2013 03:35:11 +0000 (20:35 -0700)
commite19eeffbe0fb3e05c7a47af06abf52cdaf024e03
tree497ea9af224d2cb4d3c77319221b853eb61e6fe0
parent65258850077d1569fbcb351ee84de75a8951f706
raw / baseimager: export more installer fw variables

Currently we export the following installer framework variables:

o INSTALLERFW_PARTX_DEVNODE - device nodes for each partition, e.g.,
                              /dev/sdb1

This is the device node corresponding to the partition when the image is run on
the real device.

This patch also adds the following:

o INSTALLERFW_PARTX_DISK_DEVNODE - similar to INSTALLERFW_PARTX_DEVNODE, but
  specifies disk the partition resides on, e.g., /dev/sdb
o INSTALLERFW_PARTX_DEVNODE_NOW - device nodes in the current environment which
  can be used to access the partition from within the current chroot
  environment. E.g., /dev/mapper/loop0p1.
o INSTALLERFW_PARTX_DISK_DEVNODE_NOW - similar to
  INSTALLERFW_PARTX_DEVNODE_NOW, but for the whole disk, e.f., /dev/loop0

The user of these variables is an installer framework plugin which installs
extlinux. It needs to access the whole image to install MBR and the boot
partition disk image to modify the ADV (extlinux does the latter when executed
with -i).

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