Commit 636e2551 authored by Marvin Meiers's avatar Marvin Meiers Committed by Antoine Kaufmann
Browse files

docker: fix cleanup_images.sh script to remove linux build files again

When we switched to a newer kernel version in c64d3d0e, the
cleanup_images.sh script no longer removed the linux kernel source
folder, since it still used the old version number. Now, I use a regex
to avoid this issue in the future.
parent 954967b8
...@@ -2,4 +2,9 @@ ...@@ -2,4 +2,9 @@
set -e set -e
rm -rf images/{packer,packer_cache} rm -rf images/{packer,packer_cache}
rm -rf images/output-*/*.raw rm -rf images/output-*/*.raw
rm -rf images/kernel/{kheaders,linux-5.4.46} rm -rf images/kernel/kheaders
find images/kernel \
-maxdepth 1 \
-regex "^images/kernel/linux-[0-9]*\.[0-9]*\.[0-9]*$" \
-type d \
-exec rm -rf {} \;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment