summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSExport/FileSystem/SquashFS.pm
diff options
context:
space:
mode:
authorOliver Tappe2009-03-06 17:31:58 +0100
committerOliver Tappe2009-03-06 17:31:58 +0100
commit096efb38194c5b662a9466a09a4be4b1fb28a117 (patch)
tree68d295321f7646af73f07ef57d0c35942558efc7 /installer/OpenSLX/OSExport/FileSystem/SquashFS.pm
parentAddons to desktop plugin. (diff)
downloadcore-096efb38194c5b662a9466a09a4be4b1fb28a117.tar.gz
core-096efb38194c5b662a9466a09a4be4b1fb28a117.tar.xz
core-096efb38194c5b662a9466a09a4be4b1fb28a117.zip
working at #393:
* moved copying of uclibc-rootfs from stage2 (export) to stage1 (vendor-OS) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2692 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSExport/FileSystem/SquashFS.pm')
-rw-r--r--installer/OpenSLX/OSExport/FileSystem/SquashFS.pm20
1 files changed, 1 insertions, 19 deletions
diff --git a/installer/OpenSLX/OSExport/FileSystem/SquashFS.pm b/installer/OpenSLX/OSExport/FileSystem/SquashFS.pm
index 12670dc4..d9760642 100644
--- a/installer/OpenSLX/OSExport/FileSystem/SquashFS.pm
+++ b/installer/OpenSLX/OSExport/FileSystem/SquashFS.pm
@@ -207,29 +207,11 @@ sub _createSquashFS
my $filterFile = "/tmp/slx-nbdsquash-filter-$$";
spitFile($filterFile, $includeExcludeList);
- # add uclib-root environment to stage2 by mounting it temporarily to stage1
- # subdirectory of openslx stuff
- my $uclibcRootfs = "$openslxConfig{'base-path'}/share/uclib-rootfs";
- vlog(0, _tr("preparing stage1 to add uclib-rootfs..."));
- my $res = system("mkdir -p $source/opt/openslx/uclib-rootfs");
- $res = system("mount -o ro --bind $uclibcRootfs $source/opt/openslx/uclib-rootfs");
- # 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 .= " $source/lib/ld-uClibc.so.0";
- system("$uClibCmd");
-
- if ($res) {
- die _tr(
- "unable to prepare addition of uclib-rootfs in '%s', giving up! (%s)",
- $source, $!);
- }
-
# ... invoke mksquashfs ...
vlog(0, _tr("invoking mksquashfs..."));
my $mksquashfsBinary =
"$openslxConfig{'base-path'}/share/squashfs/mksquashfs";
- $res = system("$mksquashfsBinary $source $target -ff $filterFile");
- $res = system("umount $source/opt/openslx/uclib-rootfs");
+ my $res = system("$mksquashfsBinary $source $target -ff $filterFile");
unlink($filterFile);
# ... remove filter file if done
if ($res) {