summaryrefslogtreecommitdiff
path: root/helpers/lh_clean
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:47 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:47 +0200
commitf4383da69d4642521cb07f8f970d9c9c759b44ee (patch)
tree32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_clean
parent3465a2139f34527e75d27b5d38ef2d17d4d00cb2 (diff)
downloadvyos-live-build-f4383da69d4642521cb07f8f970d9c9c759b44ee.tar.gz
vyos-live-build-f4383da69d4642521cb07f8f970d9c9c759b44ee.zip
Adding live-helper 1.0~a2-1.
Diffstat (limited to 'helpers/lh_clean')
-rwxr-xr-xhelpers/lh_clean43
1 files changed, 22 insertions, 21 deletions
diff --git a/helpers/lh_clean b/helpers/lh_clean
index f4c89601b..8508a9cc8 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -26,43 +26,44 @@ case "${1}" in
;;
cache)
- rm -rf "${LIVE_ROOT}"/cache
+ rm -rf cache
;;
chroot)
- umount -f "${LIVE_CHROOT}"/sys > /dev/null 2>&1 || true
- umount -f "${LIVE_CHROOT}"/proc > /dev/null 2>&1 || true
- umount -f "${LIVE_CHROOT}"/lib/init/rw > /dev/null 2>&1 || true
- umount -f "${LIVE_CHROOT}"/dev/shm > /dev/null 2>&1 || true
- umount -f "${LIVE_CHROOT}"/dev/pts > /dev/null 2>&1 || true
- umount -f "${LIVE_CHROOT}"/dev > /dev/null 2>&1 || true
-
- rm -rf "${LIVE_CHROOT}"
+ umount -f chroot/sys > /dev/null 2>&1 || true
+ umount -f chroot/proc > /dev/null 2>&1 || true
+ umount -f chroot/lib/init/rw > /dev/null 2>&1 || true
+ umount -f chroot/dev/shm > /dev/null 2>&1 || true
+ umount -f chroot/dev/pts > /dev/null 2>&1 || true
+ umount -f chroot/dev > /dev/null 2>&1 || true
+
+ rm -rf chroot
;;
binary)
- rm -rf "${LIVE_ROOT}"/binary
+ rm -rf binary
- rm -f "${LIVE_ROOT}"/binary.iso
- rm -f "${LIVE_ROOT}"/binary.img
- rm -f "${LIVE_ROOT}"/binary.tar.gz
+ rm -f binary.iso
+ rm -f binary.img
+ rm -f binary*.tar.gz
+ rm -f packages.txt
- rm -f "${LIVE_ROOT}"/.stage/binary*
+ rm -f .stage/binary*
;;
stage)
- rm -rf "${LIVE_ROOT}"/.stage
- rm -f "${LIVE_ROOT}"/.lock
+ rm -rf .stage
+ rm -f .lock
;;
source)
- rm -rf "${LIVE_ROOT}"/source
+ rm -rf source
- rm -f "${LIVE_ROOT}"/source.iso
- rm -f "${LIVE_ROOT}"/source.img
- rm -f "${LIVE_ROOT}"/source.tar.gz
+ rm -f source.iso
+ rm -f source.img
+ rm -f source*.tar.gz
- rm -f "${LIVE_ROOT}"/.stage/source*
+ rm -f .stage/source*
;;
*)