Merge pull request #273 from devimc/topic/removeLogs

rootfs-builder: remove /var/log
This commit is contained in:
James O. D. Hunt 2019-04-29 09:29:47 +01:00 committed by GitHub
commit 24dbcbe88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,7 +379,7 @@ fi
build_rootfs ${ROOTFS_DIR}
pushd "${ROOTFS_DIR}" >> /dev/null
if [ "$PWD" != "/" ] ; then
rm -rf ./var/cache/ ./var/lib
rm -rf ./var/cache/ ./var/lib ./var/log
fi
popd >> /dev/null