diff options
Diffstat (limited to 'remote')
| -rwxr-xr-x | remote/setup-tools.sh | 25 |
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 () { |
