diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-28 16:53:38 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-02 17:07:29 +0100 |
commit | b2b260242974a3a9ff479f7b597af96b8ea13d0d (patch) | |
tree | 4bb07cce5553f9e3c0b7a49147f6c1ab4777aadb | |
parent | f20b5b4d0ded4a870e5795d4fe277af61f20c0e3 (diff) | |
download | vyos-live-build-b2b260242974a3a9ff479f7b597af96b8ea13d0d.tar.gz vyos-live-build-b2b260242974a3a9ff479f7b597af96b8ea13d0d.zip |
clean: expand debugging
Gbp-Dch: Ignore
-rwxr-xr-x | scripts/build/clean | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/clean b/scripts/build/clean index 34ccf8023..bf55d496e 100755 --- a/scripts/build/clean +++ b/scripts/build/clean @@ -48,6 +48,7 @@ STAGEFILES_DIR="$(Stagefiles_dir)" for ARGUMENT in "${@}"; do case "${ARGUMENT}" in --all) + Echo_debug "Running --all" "${0}" noauto --chroot "${0}" noauto --binary "${0}" noauto --stage @@ -59,10 +60,12 @@ for ARGUMENT in "${@}"; do ;; --cache) + Echo_debug "Cleaning cache" rm -rf cache ;; --chroot) + # This one is not debug because it can potentially take some time Echo_message "Cleaning chroot" umount -f chroot/run > /dev/null 2>&1 || true umount -f chroot/sys > /dev/null 2>&1 || true @@ -87,6 +90,7 @@ for ARGUMENT in "${@}"; do ;; --binary) + Echo_debug "Cleaning binary" umount -f binary.tmp > /dev/null 2>&1 || true rm -rf binary.tmp binary.deb binary.udeb rm -f ${LB_IMAGE_NAME}*.iso @@ -106,11 +110,13 @@ for ARGUMENT in "${@}"; do ;; --remove) + Echo_debug "Running --remove" "${0}" noauto --all rm -rf cache/packages.* ;; --purge) + Echo_debug "Running --purge" "${0}" noauto --all "${0}" noauto --cache @@ -121,10 +127,12 @@ for ARGUMENT in "${@}"; do ;; --stage) + Echo_debug "Cleaning stage files" rm -rf "${STAGEFILES_DIR}"/* ;; --source) + Echo_debug "Cleaning source" rm -f ${LB_IMAGE_NAME}-source*.iso rm -f ${LB_IMAGE_NAME}-source*.img rm -f ${LB_IMAGE_NAME}-source*.tar |