raw: use relative path to the kernel image in extlinux.conf
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 19 Feb 2013 13:59:58 +0000 (15:59 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 19 Feb 2013 14:15:01 +0000 (16:15 +0200)
commita0aa9ebce138a9d7da3f982f9ee370e429865cf6
tree0079a615fb00eac4f2950c87ae7d17ce0b8206d9
parent3a495e86fdf2f7dce77522c55b8e6f823c1568d4
raw: use relative path to the kernel image in extlinux.conf

Currently raw image creator works only when there is a separate boot parition.
But when /boot is in the root partition, extlinux is unable to boot the kernel.

The reason of this is that in extlinux.conf MIC specify the absolute path to
the vmlinuz file - '/vmlinuz', which of course does not work when the correct
path is '/boot/vmlinuz'.

The fix seems to be easy - for extlinux the current directory is where the
'syslinux.conf' file is situated. And we know that the 'vmlinuz' file is one
level up. So all we need to do is to ask extlinux to take the look one level
up, i.e., take '../vmlinuz'.

This patch was tested in both configurations - with and without a separate boot
partition.

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