rootfs: print the path to files being deleted

Show the list of files being deleted.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai 2025-01-13 19:03:05 +00:00
parent a49d0fb343
commit 5b8471ffce

View File

@ -839,6 +839,7 @@ delete_unnecessary_files()
find "${ROOTFS_DIR}" \
-type f \
\( -name "${u}.service" -o -name "${u}.socket" \) \
-exec echo "deleting {}" \; \
-exec rm -f {} \;
done
@ -847,6 +848,7 @@ delete_unnecessary_files()
find "${ROOTFS_DIR}" \
-type f \
-name "${u}" \
-exec echo "deleting {}" \; \
-exec rm -f {} \;
done
}