mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-15 12:24:26 +01:00
rootfs-builder: delete dnf and rmp data
dnf and rmp data are not needed in the final rootfs, removing them we save 2MB of disk Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -362,7 +362,7 @@ mkdir -p ${ROOTFS_DIR}
|
||||
build_rootfs ${ROOTFS_DIR}
|
||||
pushd "${ROOTFS_DIR}" >> /dev/null
|
||||
if [ "$PWD" != "/" ] ; then
|
||||
rm -rf ./var/cache/dnf/
|
||||
rm -rf ./var/cache/ ./var/lib
|
||||
fi
|
||||
popd >> /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user