mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00: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:
parent
da8101a2aa
commit
8065bb615a
@ -362,7 +362,7 @@ mkdir -p ${ROOTFS_DIR}
|
|||||||
build_rootfs ${ROOTFS_DIR}
|
build_rootfs ${ROOTFS_DIR}
|
||||||
pushd "${ROOTFS_DIR}" >> /dev/null
|
pushd "${ROOTFS_DIR}" >> /dev/null
|
||||||
if [ "$PWD" != "/" ] ; then
|
if [ "$PWD" != "/" ] ; then
|
||||||
rm -rf ./var/cache/dnf/
|
rm -rf ./var/cache/ ./var/lib
|
||||||
fi
|
fi
|
||||||
popd >> /dev/null
|
popd >> /dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user