mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
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:
@@ -29,5 +29,6 @@ printf "\n"
|
||||
printf " * Documentation: https://docs.start9.com\n"
|
||||
printf " * Management: https://%s.local\n" "$(hostname)"
|
||||
printf " * Support: https://start9.com/contact\n"
|
||||
printf " * Source Code: https://github.com/Start9Labs/start-os\n"
|
||||
printf " * License: MIT\n"
|
||||
printf "\n"
|
||||
|
||||
9
build/registry/cleanDanglingImages
Normal file
9
build/registry/cleanDanglingImages
Normal 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
|
||||
Reference in New Issue
Block a user