summaryrefslogtreecommitdiff
path: root/helpers/binary_rootfs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-06-22 17:19:24 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:11 +0100
commit4bdc9149e62a3395e0bdd48b029a69678dd72c53 (patch)
tree01ddec961f6e017b41f63665f949aa657ddaddde /helpers/binary_rootfs
parenta3b5cbffc36b730b9c6942d6995a08ff9fa1957b (diff)
downloadlive-build-4bdc9149e62a3395e0bdd48b029a69678dd72c53.zip
live-build-4bdc9149e62a3395e0bdd48b029a69678dd72c53.tar.gz
Moving chroot exclude mechanisms to one central place in binary_chroot helper.
Diffstat (limited to 'helpers/binary_rootfs')
-rwxr-xr-xhelpers/binary_rootfs31
1 files changed, 0 insertions, 31 deletions
diff --git a/helpers/binary_rootfs b/helpers/binary_rootfs
index c813d46..6d6b345 100755
--- a/helpers/binary_rootfs
+++ b/helpers/binary_rootfs
@@ -82,37 +82,6 @@ do
fi
done
-# Handling chroot excludes
-if [ "${LH_BUILD_WITH_CHROOT}" = "true" ]
-then
- if [ -f config/binary_rootfs/excludes ]
- then
- cp config/binary_rootfs/excludes chroot/chroot/excludes
- chroot chroot/chroot /usr/bin/env -i xargs --arg-file=/excludes -I FILE bash -c 'rm -rf FILE'
- rm -f chroot/chroot/excludes
- fi
-
- if [ "${LH_DEBIAN_INSTALLER}" != "live" ]
- then
- case "${LH_PACKAGES_LISTS}" in
- stripped|minimal)
- # kernel images
- rm -f chroot/chroot/boot/${LINUX}*
- rm -f chroot/chroot/boot/initrd.img*
-
- # kernel symlinks
- rm -f chroot/chroot/${LINUX}*
- rm -f chroot/chroot/initrd.img*
- ;;
- esac
- fi
-else
- if [ "${LH_CHROOT_FILESYSTEM}" != "squashfs" ]
- then
- Echo_warning "rootfs excludes are not supported on non-chrooted builds unless squashfs as chroot filesystem is used, thus ignoring excludes now."
- fi
-fi
-
case "${LH_CHROOT_FILESYSTEM}" in
ext2|ext3)
# Checking depends