mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 20:09:44 +00:00
rootfs-builder: remove /var/log
/var/log is not required in the rootfs fixes #254 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
edd7d9ccd3
commit
c00849b0bc
@ -379,7 +379,7 @@ fi
|
|||||||
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/ ./var/lib
|
rm -rf ./var/cache/ ./var/lib ./var/log
|
||||||
fi
|
fi
|
||||||
popd >> /dev/null
|
popd >> /dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user