mute errors due to failed incoming network connections (#2497)

* mute errors due to failed incoming network connections

* fix log entry formatting

* Update cleanDanglingImages

* Update cleanDanglingImages
This commit is contained in:
Aiden McClelland
2023-11-02 17:33:41 -06:00
committed by GitHub
parent f54f950f81
commit 7ba22f1a09
10 changed files with 62 additions and 24 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
for image in $(find /root/resources/eos/ -type f -name '*.squashfs' -mmin +240 -exec realpath {} \;); do
if ! mount | grep "^$image" > /dev/null; then
>&2 echo "Removing dangling image: $image"
rm $image
fi
done
find /root/resources/eos -type d -empty -delete