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>2011-03-09 18:18:28 +0100
commit677415f6d7efc1e5b888570d70af311d2900c69c (patch)
tree32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_clean
parent811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff)
downloadvyos-live-build-677415f6d7efc1e5b888570d70af311d2900c69c.tar.gz
vyos-live-build-677415f6d7efc1e5b888570d70af311d2900c69c.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*
;;
*)