From 68acd8307c3d4951f34c8935f7b2898257b2fa17 Mon Sep 17 00:00:00 2001 From: gaowei Date: Mon, 22 Mar 2021 09:49:11 +0800 Subject: [PATCH] microvm_img: delete useless package and file during build. --- script/step/make_microvm_image.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/step/make_microvm_image.sh b/script/step/make_microvm_image.sh index e792c56..c9145db 100644 --- a/script/step/make_microvm_image.sh +++ b/script/step/make_microvm_image.sh @@ -36,7 +36,6 @@ prepare_rootfs(){ yum clean all -c "${yum_conf}" yum makecache -c "${yum_conf}" - yum install iproute iputils -y -c "${yum_conf}" set +e os_release_name=${OS_NAME}-release @@ -57,7 +56,7 @@ prepare_kernel(){ yum clean all -c "${yum_conf}" yum makecache -c "${yum_conf}" - yum install make gcc bison flex openssl-devel elfutils-devel bc iproute iputils -y -c "${yum_conf}" + yum install make gcc bison flex openssl-devel elfutils-devel bc -y -c "${yum_conf}" LOG "prepare vmlinux kernel end." } @@ -110,9 +109,9 @@ make_micro_img(){ rm -rf ${rootfs_dir} pushd ${img_dir} if [ -f ${img_file} ]; then - sha256sum $(basename ${img_file}) > ${img_file}.sha256sum xz -T 20 -z -c ${img_file} > ${img_file}.xz sha256sum $(basename ${img_file}.xz) > ${img_file}.xz.sha256sum + rm -f ${img_file} LOG "made sum files for ${img_file}" fi popd -- Gitee