[OE-core] [PATCH] image_types: Ensure /init exists for cpio rootfs archives

Richard Purdie richard.purdie at linuxfoundation.org
Thu Jan 5 12:30:15 UTC 2012


On Thu, 2012-01-05 at 01:05 +0100, Andrea Adami wrote:
> I'd say we have to test for the in-existence of the file instead of
> blindly touching it.
> Smthg like
> 
> if [! -e ${IMAGE_ROOTFS}/init]; then
> touch ${IMAGE_ROOTFS}/init
> fi
> 
> 
> Now, repeating that block for all 4 cpio images is a bit ugly... better ideas?

Make it a shell function we call? I'd also check for
${base_sbindir}/init first too?

Cheers,

Richard





More information about the Openembedded-core mailing list