summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2012-09-28 17:15:08 +0200
committerJonathan Bauer2012-09-28 17:15:08 +0200
commita4234c9aad56d74c9de3e64ff30023bd16afa889 (patch)
tree5eda270f7d6c27cde0f5971ec3a315f3f14f271a
parentfix 2 allala (diff)
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-a4234c9aad56d74c9de3e64ff30023bd16afa889.tar.gz
tm-scripts-a4234c9aad56d74c9de3e64ff30023bd16afa889.tar.xz
tm-scripts-a4234c9aad56d74c9de3e64ff30023bd16afa889.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
-rwxr-xr-xremote/setup-tools.sh25
1 files changed, 21 insertions, 4 deletions
diff --git a/remote/setup-tools.sh b/remote/setup-tools.sh
index e532600d..164ac689 100755
--- a/remote/setup-tools.sh
+++ b/remote/setup-tools.sh
@@ -61,8 +61,8 @@ copyfileswithdependencies ()
COPYFILES_LIST="copyfiles.list"
- for FILENAME in $REQUIRED_BINARIES $REQUIRED_FILES
- do
+ for FILENAME in $REQUIRED_BINARIES
+ do
for f in $(find . -name $FILENAME -type f -executable)
do
[ $(file $f |grep -i Executable |grep -c ELF) -eq 1 ] && FILE=$f
@@ -75,9 +75,26 @@ copyfileswithdependencies ()
filename_path=$(dirname $i)
echo "$filename_path/$filename_base*" >> $COPYFILES_LIST
done
- #copy to initramfsdir
- tar -cpv $(cat $COPYFILES_LIST) | tar -xpv -C $INIT_DIR
done
+
+ # fast hack
+ #LDLINUX=$(ldd $FILE | grep ld-linux | awk '{print $1}' |cut -c2-)
+ #case $LDLINUX in
+ # *lib/*) cp -a /lib/ld-* lib ;;
+ # *lib64/*) cp -a /lib64/ld-* lib64 ;;
+ #esac
+
+ for FILENAME in $REQUIRED_FILES
+ do
+ for f in $(find . -name $FILENAME -type f -executable)
+ do
+ [ $(file $f |grep -i Executable |grep -c ELF) -eq 1 ] && FILE=$f
+ done
+ echo $FILE >> $COPYFILES_LIST
+ done
+
+ #copy to initramfsdir
+ tar -cpv $(cat $COPYFILES_LIST) | tar -xpv -C $INIT_DIR
}
main () {