raw.py: create device nodes to access own disk
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 27 Sep 2013 12:59:44 +0000 (15:59 +0300)
committerGui Chen <gui.chen@intel.com>
Tue, 5 Nov 2013 02:28:29 +0000 (21:28 -0500)
commitb980a5fb858ad6c851d4790421d8b93a4b810744
tree14c23452712835d7b2cefabb46eec6b552e98a35
parent0b5f0009c33e349cfa0d9bac9fc3fa9ee92be44c
raw.py: create device nodes to access own disk

This patch creates loop-back devices in /dev of the image so that it would be
possible to access own disk from within chroot environment. This makes it
possible to install extlinux from chroot, not outside of chroot, as it is done
now. This also allows to do extlinux installation in an installer framework
plugin.

I do realize that this is not the most beautiful thing to do, but it works - I
have a script which installs extlinux when I run it from %post.

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