summaryrefslogtreecommitdiff
path: root/scripts/build/binary_chroot
diff options
context:
space:
mode:
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" ]