From cbb9b142ce4ebf16ebbc03929176c5e5b8ce8955 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Thu, 4 Jan 2018 12:30:00 +0100 Subject: 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 --- recipes-images/images/tdx-image-fstype.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3