diff options
author | Ross Burton <ross@burtonini.com> | 2020-12-01 15:23:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-18 23:01:48 +0000 |
commit | c34acd279e09e7d579f6060f2eab5227bbd9754f (patch) | |
tree | 5c9fd773c65b7865b793523c2bc47fe4fe97b089 /meta/classes | |
parent | 6006b3514fb750d744ecb7e0ee2944cb5855fd9b (diff) | |
download | poky-c34acd279e09e7d579f6060f2eab5227bbd9754f.tar.gz |
image_types: sort tarball file listings
Help rootfs tarballs be reproducible by sorting the file listing.
(From OE-Core rev: 383fec3f31d9921be1cb9d9880a62fb866fccde7)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4fa68626bbcfd9795577e1426c27d00f4d9d1c17)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 66884af8e0..9a508a911f 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -120,7 +120,7 @@ IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAM | |||
120 | # required when extracting, but it seems prudent to use it in both cases. | 120 | # required when extracting, but it seems prudent to use it in both cases. |
121 | IMAGE_CMD_TAR ?= "tar" | 121 | IMAGE_CMD_TAR ?= "tar" |
122 | # ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs | 122 | # ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs |
123 | IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 ]" | 123 | IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --sort=name --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 ]" |
124 | 124 | ||
125 | do_image_cpio[cleandirs] += "${WORKDIR}/cpio_append" | 125 | do_image_cpio[cleandirs] += "${WORKDIR}/cpio_append" |
126 | IMAGE_CMD_cpio () { | 126 | IMAGE_CMD_cpio () { |