From d102720491267dd11d7c5983d33bc94c5a46c08b Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Mon, 20 May 2019 11:26:05 +0200 Subject: ptxdist: clean root should clean all image packages too The images are already removed by 'clean root', so the image packages are built again anyways on the next build. Remove all left-over state for the image packages too, as those files are now useless. Signed-off-by: Roland Hieber --- bin/ptxdist | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/ptxdist b/bin/ptxdist index 1a8e02192..eaecbb4d6 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1060,6 +1060,8 @@ clean() { # we want to clean the root dir if [ "${1}" = "root" ]; then echo + echo "${PTXDIST_LOG_PROMPT}cleaning image packages..." + rm -fr -- "${STATEDIR}"/image-* echo "${PTXDIST_LOG_PROMPT}cleaning image directory..." rm -fr -- "${IMAGEDIR}" echo "${PTXDIST_LOG_PROMPT}cleaning root directory..." -- cgit v1.2.3