mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 23:11:57 +00: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:
parent
82759dac14
commit
2a2a79aa87
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user