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:
Julio Montes 2019-03-08 11:42:46 -06:00
parent da8101a2aa
commit 8065bb615a

View File

@ -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