From 9d29b23db225966714f48258eff3dafa8586fbd7 Mon Sep 17 00:00:00 2001 From: Matyas Markovics Date: Wed, 13 Mar 2019 09:59:33 +0100 Subject: [PATCH] exclude mounts (e.g.: /proc) from cleanup --- image/cleanup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/cleanup.sh b/image/cleanup.sh index cfe7246..57e8c7b 100755 --- a/image/cleanup.sh +++ b/image/cleanup.sh @@ -9,7 +9,7 @@ rm -rf /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* # clean up python bytecode -find / -name *.pyc -delete -find / -name *__pycache__* -delete +find / -mount -name *.pyc -delete +find / -mount -name *__pycache__* -delete rm -f /etc/ssh/ssh_host_*