Skip to content

Commit

Permalink
Clear the /run directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Nov 26, 2020
1 parent d6a4db1 commit 63041ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions export-image/03-finalise/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 63041ab

Please sign in to comment.