diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2018-01-04 12:30:00 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-03-22 09:18:36 +0100 |
commit | cbb9b142ce4ebf16ebbc03929176c5e5b8ce8955 (patch) | |
tree | 1e38e5f67c3bb8f4cc54d2f16f3d3fb4dac4251b /recipes-images | |
parent | 9632c8c6e9ca224e7dbe8a37b99cdcab5e86ba26 (diff) |
tdx-image-fstype: tar with --numeric-owner
If --numeric-owner is not used when creating and/or extracting the archive
containing the rootfs then tar tries to change the numeric uid/gid of the
files based on owner/group names of the host used to extract the archive.
Create the archive with --numeric-owner to prevent this from happening when
extracting.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-images')
-rw-r--r-- | recipes-images/images/tdx-image-fstype.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-images/images/tdx-image-fstype.inc b/recipes-images/images/tdx-image-fstype.inc index 41c15a3..8286a88 100644 --- a/recipes-images/images/tdx-image-fstype.inc +++ b/recipes-images/images/tdx-image-fstype.inc @@ -180,7 +180,7 @@ fakeroot imagedeploy_arm() { #create tarball # ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs - tar --use-compress-prog=pbzip2 -cf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}_${TDX_VER_PACKAGE}.tar.bz2 ${IMAGE_DIR} || true + tar --use-compress-prog=pbzip2 --numeric-owner -cf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}_${TDX_VER_PACKAGE}.tar.bz2 ${IMAGE_DIR} || true } fakeroot do_imagedeploy() { |