diff options
authorMax Krummenacher <>2018-01-04 12:30:00 +0100
committerMarcel Ziswiler <>2018-03-22 09:18:36 +0100
commitcbb9b142ce4ebf16ebbc03929176c5e5b8ce8955 (patch)
parent9632c8c6e9ca224e7dbe8a37b99cdcab5e86ba26 (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 <> Acked-by: Marcel Ziswiler <>
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-images/images/ b/recipes-images/images/
index 41c15a3..8286a88 100644
--- a/recipes-images/images/
+++ b/recipes-images/images/
@@ -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() {