diff options
author | Ross Burton <ross@burtonini.com> | 2020-12-01 15:23:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-03 22:53:09 +0000 |
commit | 58692017e0785d376aae205af541dec186ba9475 (patch) | |
tree | b4e2294c83fa214c992a394b947d829a9145ddd1 /meta | |
parent | 2711e1ee999cfa9484dc95852b5b8137b84a31ad (diff) | |
download | poky-58692017e0785d376aae205af541dec186ba9475.tar.gz |
image_types: sort tarball file listings
Help rootfs tarballs be reproducible by sorting the file listing.
(From OE-Core rev: 4fa68626bbcfd9795577e1426c27d00f4d9d1c17)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 3ec321765d..286009057e 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -110,7 +110,7 @@ IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAM | |||
110 | 110 | ||
111 | IMAGE_CMD_TAR ?= "tar" | 111 | IMAGE_CMD_TAR ?= "tar" |
112 | # ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs | 112 | # ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs |
113 | IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 ]" | 113 | IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --sort=name --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 ]" |
114 | 114 | ||
115 | do_image_cpio[cleandirs] += "${WORKDIR}/cpio_append" | 115 | do_image_cpio[cleandirs] += "${WORKDIR}/cpio_append" |
116 | IMAGE_CMD_cpio () { | 116 | IMAGE_CMD_cpio () { |