summaryrefslogtreecommitdiff
path: root/scripts/build/clean
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-02-18 11:29:04 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:06 +0200
commit04cec317cc4437eed514f4277f6779010e587662 (patch)
tree16e00a5358affa5a5b906f2c0d3f38d628ab0b2e /scripts/build/clean
parent3f3d05b2e654a4ec312cb121c991b8c010bf3db1 (diff)
downloadvyos-live-build-04cec317cc4437eed514f4277f6779010e587662.tar.gz
vyos-live-build-04cec317cc4437eed514f4277f6779010e587662.zip
Removing incomplete support for root-command.
Diffstat (limited to 'scripts/build/clean')
-rwxr-xr-xscripts/build/clean34
1 files changed, 17 insertions, 17 deletions
diff --git a/scripts/build/clean b/scripts/build/clean
index 3c0f35f75..8706bf214 100755
--- a/scripts/build/clean
+++ b/scripts/build/clean
@@ -68,26 +68,26 @@ do
;;
--cache)
- ${LB_ROOT_COMMAND} rm -rf cache
+ rm -rf cache
;;
--chroot)
Echo_message "Cleaning chroot"
- ${LB_ROOT_COMMAND} umount -f chroot/run > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/sys > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/proc/sys/fs/binfmt_misc > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/proc > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/lib/init/rw > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/dev/shm > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/dev/pts > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/dev > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/var/lib/dpkg > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/root/config > /dev/null 2>&1 || true
-
- ${LB_ROOT_COMMAND} umount -f chroot/binary.tmp > /dev/null 2>&1 || true
- ${LB_ROOT_COMMAND} umount -f chroot/dev.tmp/pts > /dev/null 2>&1 || true
-
- ${LB_ROOT_COMMAND} rm -rf chroot chroot.tmp
+ umount -f chroot/run > /dev/null 2>&1 || true
+ umount -f chroot/sys > /dev/null 2>&1 || true
+ umount -f chroot/proc/sys/fs/binfmt_misc > /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
+ umount -f chroot/var/lib/dpkg > /dev/null 2>&1 || true
+ umount -f chroot/root/config > /dev/null 2>&1 || true
+
+ umount -f chroot/binary.tmp > /dev/null 2>&1 || true
+ umount -f chroot/dev.tmp/pts > /dev/null 2>&1 || true
+
+ rm -rf chroot chroot.tmp
rm -f chroot.packages.live chroot.packages.install
@@ -95,7 +95,7 @@ do
;;
--binary)
- ${LB_ROOT_COMMAND} umount -f binary.tmp > /dev/null 2>&1 || true
+ umount -f binary.tmp > /dev/null 2>&1 || true
rm -rf binary.tmp binary.deb binary.udeb
rm -f ${LIVE_IMAGE_NAME}*.iso
rm -f ${LIVE_IMAGE_NAME}*.img