diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:47 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:28 +0100 |
commit | 677415f6d7efc1e5b888570d70af311d2900c69c (patch) | |
tree | 32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_clean | |
parent | 811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff) | |
download | vyos-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-x | helpers/lh_clean | 43 |
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* ;; *) |