diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image_types.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 8e33214955..650c2f8a5f 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -68,9 +68,9 @@ IMAGE_CMD_tar = "tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar -C ${IMAG | |||
68 | 68 | ||
69 | IMAGE_CMD_cpio () { | 69 | IMAGE_CMD_cpio () { |
70 | (cd ${IMAGE_ROOTFS} && find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio) | 70 | (cd ${IMAGE_ROOTFS} && find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio) |
71 | if [ ! -e ${IMAGE_ROOTFS}/init ]; then | 71 | if [ ! -L ${IMAGE_ROOTFS}/init -a ! -e ${IMAGE_ROOTFS}/init ]; then |
72 | mkdir -p ${WORKDIR}/cpio_append | 72 | mkdir -p ${WORKDIR}/cpio_append |
73 | if [ -e ${IMAGE_ROOTFS}/sbin/init -o -L ${IMAGE_ROOTFS}/sbin/init ]; then | 73 | if [ -L ${IMAGE_ROOTFS}/sbin/init -o -e ${IMAGE_ROOTFS}/sbin/init ]; then |
74 | ln -sf /sbin/init ${WORKDIR}/cpio_append/init | 74 | ln -sf /sbin/init ${WORKDIR}/cpio_append/init |
75 | else | 75 | else |
76 | touch ${WORKDIR}/cpio_append/init | 76 | touch ${WORKDIR}/cpio_append/init |