]> code.ossystems Code Review - openembedded-core.git/commit
image_types: Ensure /init exists for cpio rootfs archives
authorDarren Hart <dvhart@linux.intel.com>
Wed, 21 Dec 2011 08:24:46 +0000 (00:24 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Jan 2012 12:10:45 +0000 (12:10 +0000)
commit849b9aadae41d9b6777787213556bc538858b49a
tree780a7330c51e24d2c4622ec211216f2749aaef2c
parent1db9313121cbc2db00843a4afcf5c26b5cb966ac
image_types: Ensure /init exists for cpio rootfs archives

In order for the kernel to accept an initramfs as a rootfs,
it must have /init - even if it is an empty file. Touch /init
to ensure it exists for cpio and cpio.gz image types.

When used with initrd and rootfs=/dev/ram0, this allows the
cpio and cpio.gz images to be used as the rootfs.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
meta/classes/image_types.bbclass