summaryrefslogtreecommitdiff
path: root/helpers/lh_clean
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:12 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:19:41 +0100
commit504c05c3a63de0af4fd0e876274afc039c5c0ed1 (patch)
tree5a29d0f82735a131c9319b5b825c57b740584d13 /helpers/lh_clean
parent37a5c53ddd2825bf6b0ce521908a63d419683981 (diff)
downloadlive-build-504c05c3a63de0af4fd0e876274afc039c5c0ed1.zip
live-build-504c05c3a63de0af4fd0e876274afc039c5c0ed1.tar.gz
Adding live-helper 1.0~a15-1.
Diffstat (limited to 'helpers/lh_clean')
-rwxr-xr-xhelpers/lh_clean13
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