mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 21:02:34 +00:00
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:
parent
a49d0fb343
commit
5b8471ffce
@ -839,6 +839,7 @@ delete_unnecessary_files()
|
|||||||
find "${ROOTFS_DIR}" \
|
find "${ROOTFS_DIR}" \
|
||||||
-type f \
|
-type f \
|
||||||
\( -name "${u}.service" -o -name "${u}.socket" \) \
|
\( -name "${u}.service" -o -name "${u}.socket" \) \
|
||||||
|
-exec echo "deleting {}" \; \
|
||||||
-exec rm -f {} \;
|
-exec rm -f {} \;
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -847,6 +848,7 @@ delete_unnecessary_files()
|
|||||||
find "${ROOTFS_DIR}" \
|
find "${ROOTFS_DIR}" \
|
||||||
-type f \
|
-type f \
|
||||||
-name "${u}" \
|
-name "${u}" \
|
||||||
|
-exec echo "deleting {}" \; \
|
||||||
-exec rm -f {} \;
|
-exec rm -f {} \;
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user