From 2d48300bf84c0c09ace0848350dcc74ac95ca167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 6 Dec 2022 14:09:02 +0100 Subject: [PATCH] build_image: Don't add root_hash.txt to the final tarball MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding the `root_hash.txt` to the final tarball doesn't bring any benefit to the project, as the file dependency is for building the shim-v2 and passing the correct measurement for the kernel command line. It's important to mention that when building shim-v2, it doesn't look for the file in `/opt/confidential-containers/share/kata-containers`, bur rather in the `${repo_root_dir}/tools/osbuilder/`, as shown here: https://github.com/kata-containers/kata-containers/blob/ac3683e26ee2152c15c3fe3c8b454433c483d6c0/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh#L228-L232 Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/guest-image/build_image.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/packaging/guest-image/build_image.sh b/tools/packaging/guest-image/build_image.sh index c25477839..b41741303 100755 --- a/tools/packaging/guest-image/build_image.sh +++ b/tools/packaging/guest-image/build_image.sh @@ -73,9 +73,6 @@ build_image() { IMG_OS_VERSION="${img_os_version}" \ ROOTFS_BUILD_DEST="${builddir}/rootfs-image" mv -f "kata-containers.img" "${install_dir}/${image_name}" - if [ -e "root_hash.txt" ]; then - cp root_hash.txt "${install_dir}/" - fi ( cd "${install_dir}" ln -sf "${image_name}" "${final_image_name}${image_initrd_extension}"