]> 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>
Wed, 31 Dec 2014 10:17:49 +0000 (10:17 +0000)
commit40bf6d0d71bd534fadcbc07b6fbba856e50bc534
treef2e2e57514c1975eba1a64e962625622f41e2eec
parenta56d726562c3b075d49125d206af56c829b3377b
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.

(From OE-Core rev: 3505558e067fdde4ab7aaaf3c50886f292d7c166)

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/image_types.bbclass