diff options
Diffstat (limited to 'helpers/lh_clean')
-rwxr-xr-x | helpers/lh_clean | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/helpers/lh_clean b/helpers/lh_clean index 84c60b8..bd22681 100755 --- a/helpers/lh_clean +++ b/helpers/lh_clean @@ -20,7 +20,7 @@ done # Setting static variables DESCRIPTION="clean up system build directories" HELP="" -USAGE="${PROGRAM} [all|cache|chroot|binary|lock|purge|stage|source]" +USAGE="${PROGRAM} [all|cache|chroot|binary|purge|stage|source]" Arguments "${@}" @@ -32,11 +32,12 @@ Read_conffile config/binary Read_conffile config/source Set_defaults +rm -f .lock + case "${1}" in all) "${0}" chroot "${0}" binary - "${0}" lock "${0}" stage "${0}" source @@ -53,6 +54,7 @@ case "${1}" in chroot) ${LH_ROOT_COMMAND} umount -f chroot/sys > /dev/null 2>&1 || true + ${LH_ROOT_COMMAND} umount -f chroot/proc/sys/fs/binfmt_misc > /dev/null 2>&1 || true ${LH_ROOT_COMMAND} umount -f chroot/proc > /dev/null 2>&1 || true ${LH_ROOT_COMMAND} umount -f chroot/lib/init/rw > /dev/null 2>&1 || true ${LH_ROOT_COMMAND} umount -f chroot/dev/shm > /dev/null 2>&1 || true @@ -72,10 +74,11 @@ case "${1}" in ;; binary) + ${LH_ROOT_COMMAND} umount -f binary.tmp > /dev/null 2>&1 || true + rm -rf binary.tmp binary.deb binary.udeb rm -f binary.iso rm -f binary.img rm -f binary*.tar.gz - rm -f packages.txt rm -rf binary rm -rf tftpboot @@ -83,10 +86,6 @@ case "${1}" in rm -f .stage/binary* ;; - lock) - rm -f .lock - ;; - purge) PURGE="true" "${0}" all "${0}" cache |