summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--installer/OpenSLX/OSSetup/Engine.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm
index 6a2697d2..9eee6ce0 100644
--- a/installer/OpenSLX/OSSetup/Engine.pm
+++ b/installer/OpenSLX/OSSetup/Engine.pm
@@ -1075,10 +1075,15 @@ sub _copyUclibcRootfs
my $rsyncCmd
= "rsync -aq --delete-excluded --exclude-from=- $uclibcRootfs/ $target";
vlog(2, "executing: $rsyncCmd\n");
- # if we're doing a fresh install we need to create /lib first
- slxsystem("mkdir -p $targetRoot/lib");
+ # if we're doing a fresh install we need to create /lib, /bin first
+ mkdir "$targetRoot/lib";
+ mkdir "$targetRoot/bin";
+ # copy uclibc-wrapper into the standard bin directory of the vendor os
+ my $uClibCmd = "cp $openslxConfig{'base-path'}/bin/uclibc-wrapper";
+ $uClibCmd .= " $targetRoot/bin";
+ system($uClibCmd);
# link uClibc from the uclib-rootfs to /lib to make LD_PRELOAD=... working
- my $uClibCmd = "ln -sf /opt/openslx/uclib-rootfs/lib/ld-uClibc.so.0";
+ $uClibCmd = "ln -sf /opt/openslx/uclib-rootfs/lib/ld-uClibc.so.0";
$uClibCmd .= " $targetRoot/lib/ld-uClibc.so.0";
system($uClibCmd);