summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-09 19:21:01 +0200
committerSimon Rettberg2014-07-09 19:21:01 +0200
commit6449565c5c91960ca09039885fa44b83e2c0bff3 (patch)
tree9b88c208da247ccefede6796c0f85ef26d7cfec4 /remote
parent[rfs-stage31] Fix cursor hiding if showing splash (diff)
downloadtm-scripts-6449565c5c91960ca09039885fa44b83e2c0bff3.tar.gz
tm-scripts-6449565c5c91960ca09039885fa44b83e2c0bff3.tar.xz
tm-scripts-6449565c5c91960ca09039885fa44b83e2c0bff3.zip
Revert "[setup_target] only link /{lib,bin} to /usr/{lib,bin} if it is that way on the current system"
Unfortunately this breaks several things now like busybox in stage31, udisks, ... This was meant as a fix for the chroot build utils, but we need a better fix apparently. This reverts commit ee9c50f95da7d2733a3d14ff69fe364a9a445f61.
Diffstat (limited to 'remote')
-rwxr-xr-xremote/setup_target6
1 files changed, 0 insertions, 6 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 8e7f7a36..11e1d5be 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -267,13 +267,8 @@ generate_target() {
perror "Target directory cannot be named 'builds' or 'modules'."
pdebug "Generating '$TARGET_BUILD_DIR' for '$TARGET'"
-
- # here we need to check if the current system has "true" /bin, /sbin and /lib* folders
- # or if they are symlinked. If they are, we take over that structure.
-
for DIR in lib lib64 bin sbin; do
mkdir -p "${TARGET_BUILD_DIR}/usr/${DIR}" || perror "Could not create '${TARGET_BUILD_DIR}/usr/${DIR}'"
- [ ! -L "/${DIR}" ] && continue
[ -L "${TARGET_BUILD_DIR}/${DIR}" ] || ln -s "usr/${DIR}" "${TARGET_BUILD_DIR}/${DIR}" || perror "Could not symlink '${TARGET_BUILD_DIR}/${DIR}' to 'usr/${DIR}"
done
@@ -378,7 +373,6 @@ process_module() {
local DIR
for DIR in lib lib64 bin sbin; do
mkdir -p "${MODULE_BUILD_DIR}/usr/${DIR}" || perror "Could not create '${MODULE_BUILD_DIR}/usr/${DIR}'"
- [ ! -L "/$DIR" ] && continue
[ -L "${MODULE_BUILD_DIR}/${DIR}" ] || ln -s "usr/${DIR}" "${MODULE_BUILD_DIR}/${DIR}" || perror "Could not symlink '${MODULE_BUILD_DIR}/${DIR}' to 'usr/${DIR}"
done
pdebug "## Reading config of $MODULE"