]> code.ossystems Code Review - openembedded-core.git/commit
image_types.bbclass: Populate cpio /init as symlink
authorNathan Rossi <nathan.rossi@xilinx.com>
Tue, 9 Dec 2014 05:50:05 +0000 (15:50 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Dec 2014 17:54:13 +0000 (17:54 +0000)
commit3505558e067fdde4ab7aaaf3c50886f292d7c166
tree8d1797965791ee0c98610b8e0c7e592651ea09af
parent3678e504cf81f45bd0b0ab315f9cc4da87a633b5
image_types.bbclass: Populate cpio /init as symlink

For cpio/ramfs the kernel will first attempt to execute /init and will
emit the following error as the file is empty:

    Failed to execute /init (error -13)

If /sbin/init exists symlink to it so the kernel can immediately start
the correct init executable instead of an empty file.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image_types.bbclass