From 63041ab90ee5ec35eb9da2f6968a00dc9e2a3ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Thu, 26 Nov 2020 17:54:40 +0100 Subject: [PATCH] Clear the /run directory --- export-image/03-finalise/00-run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/export-image/03-finalise/00-run.sh b/export-image/03-finalise/00-run.sh index 5405d79..4dfa22b 100755 --- a/export-image/03-finalise/00-run.sh +++ b/export-image/03-finalise/00-run.sh @@ -32,6 +32,8 @@ find "${ROOTFS_DIR}/etc" -type f -name "*.dpkg-old" -exec rm -v {} \; find "${ROOTFS_DIR}/var/log/" -type f -exec cp /dev/null {} \; +rm -v -rf "${ROOTFS_DIR}/run/"* + ROOT_DEV="$(mount | grep "${ROOTFS_DIR} " | cut -f1 -d' ')" unmount "${ROOTFS_DIR}"