summaryrefslogtreecommitdiff
path: root/scripts/build/binary_chroot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-02-18 13:56:07 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:06 +0200
commitdbfe7b10d78d8a71ee404af0d3952af48eeb4d1d (patch)
tree709a2c9331091622e6b96bb22b52410d0109ccb1 /scripts/build/binary_chroot
parent04cec317cc4437eed514f4277f6779010e587662 (diff)
downloadvyos-live-build-dbfe7b10d78d8a71ee404af0d3952af48eeb4d1d.tar.gz
vyos-live-build-dbfe7b10d78d8a71ee404af0d3952af48eeb4d1d.zip
Removing incomplete support for fakeroot.
Diffstat (limited to 'scripts/build/binary_chroot')
-rwxr-xr-xscripts/build/binary_chroot23
1 files changed, 2 insertions, 21 deletions
diff --git a/scripts/build/binary_chroot b/scripts/build/binary_chroot
index fb7c7546a..947e55b65 100755
--- a/scripts/build/binary_chroot
+++ b/scripts/build/binary_chroot
@@ -41,31 +41,12 @@ Create_lockfile .lock
# Normally, virtual filesystems are not mounted here, but people tend to be lazy
if [ -f chroot/proc/version ]
then
- if [ "${LB_USE_FAKEROOT}" != "true" ]
- then
- umount chroot/proc
- else
- rm -rf chroot/proc
- mkdir -p chroot/proc
- fi
+ umount chroot/proc
fi
if [ -d chroot/sys/kernel ]
then
- if [ "${LB_USE_FAKEROOT}" != "true" ]
- then
- umount chroot/sys
- else
- rm -rf chroot/sys
- mkdir -p chroot/sys
- fi
-fi
-
-# Copying /dev if using fakeroot
-if [ "${LB_USE_FAKEROOT}" = "true" ]
-then
- rm -rf chroot/dev
- find /dev | cpio -dmpu chroot
+ umount chroot/sys
fi
if [ "${LB_BUILD_WITH_CHROOT}" = "false" ]