summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/image_types.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/image_types.bbclass')
-rw-r--r--meta/classes-recipe/image_types.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass
index bbddfaf272..023eb87537 100644
--- a/meta/classes-recipe/image_types.bbclass
+++ b/meta/classes-recipe/image_types.bbclass
@@ -148,10 +148,11 @@ IMAGE_CMD:cpio () {
148 if [ ! -L ${IMAGE_ROOTFS}/init ] && [ ! -e ${IMAGE_ROOTFS}/init ]; then 148 if [ ! -L ${IMAGE_ROOTFS}/init ] && [ ! -e ${IMAGE_ROOTFS}/init ]; then
149 if [ -L ${IMAGE_ROOTFS}/sbin/init ] || [ -e ${IMAGE_ROOTFS}/sbin/init ]; then 149 if [ -L ${IMAGE_ROOTFS}/sbin/init ] || [ -e ${IMAGE_ROOTFS}/sbin/init ]; then
150 ln -sf /sbin/init ${WORKDIR}/cpio_append/init 150 ln -sf /sbin/init ${WORKDIR}/cpio_append/init
151 touch -h -r ${IMAGE_ROOTFS}/sbin/init ${WORKDIR}/cpio_append/init
151 else 152 else
152 touch ${WORKDIR}/cpio_append/init 153 touch -r ${IMAGE_ROOTFS} ${WORKDIR}/cpio_append/init
153 fi 154 fi
154 (cd ${WORKDIR}/cpio_append && echo ./init | cpio -oA -H newc -F ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.cpio) 155 (cd ${WORKDIR}/cpio_append && echo ./init | cpio --reproducible -oA -H newc -F ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.cpio)
155 fi 156 fi
156 fi 157 fi
157} 158}