mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-08 17:04:26 +01:00
centos: clean up yum caches after installing packages
So that we can get smaller rootfs. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
@@ -129,6 +129,7 @@ build_rootfs() {
|
||||
|
||||
DNF="${PKG_MANAGER} --config=$DNF_CONF -y --installroot=${ROOTFS_DIR} --noplugins"
|
||||
$DNF install ${EXTRA_PKGS} ${PACKAGES}
|
||||
$DNF clean all
|
||||
|
||||
[ -n "${ROOTFS_DIR}" ] && rm -r "${ROOTFS_DIR}/var/cache/centos-osbuilder"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user