From dbfe7b10d78d8a71ee404af0d3952af48eeb4d1d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 18 Feb 2013 13:56:07 +0100 Subject: Removing incomplete support for fakeroot. --- scripts/build/chroot_sysfs | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'scripts/build/chroot_sysfs') diff --git a/scripts/build/chroot_sysfs b/scripts/build/chroot_sysfs index a40078f30..4dab358db 100755 --- a/scripts/build/chroot_sysfs +++ b/scripts/build/chroot_sysfs @@ -43,17 +43,11 @@ case "${1}" in # Creating lock file Create_lockfile .lock - if [ "${LB_USE_FAKEROOT}" != "true" ] - then - # Create mountpoint - mkdir -p chroot/sys - - # Mounting /sys - mount sysfs-live -t sysfs chroot/sys - else - rm -rf chroot/sys - ln -s /sys chroot/ - fi + # Create mountpoint + mkdir -p chroot/sys + + # Mounting /sys + mount sysfs-live -t sysfs chroot/sys # Creating stage file Create_stagefile .build/chroot_sysfs @@ -68,17 +62,10 @@ case "${1}" in # Creating lock file Create_lockfile .lock - if [ "${LB_USE_FAKEROOT}" != "true" ] + # Unmounting /sys + if [ -e chroot/sys/class ] then - # Unmounting /sys - #fuser -km chroot/sys - if [ -e chroot/sys/class ] - then - umount chroot/sys - fi - else - rm -rf chroot/sys - mkdir -p chroot/sys + umount chroot/sys fi # Removing stage file -- cgit v1.2.3