From: Tails developers Date: Sat, 8 Jan 2011 17:09:01 +0000 (+0100) Subject: Fixing cache_path: cache non-executable libs dependencies as well. X-Git-Tag: debian/3.0_a21-1~8 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=d47bea550abcaa87df62bece5f6a94eeb97c8487;p=live-boot-grml.git Fixing cache_path: cache non-executable libs dependencies as well. Most shared libraries are not executable and nevertheless depend on other shared libraries. These dependencies must be cached as well. --- diff --git a/debian/live-boot.init b/debian/live-boot.init index cd2e4cd..1130730 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -47,15 +47,12 @@ cache_path() find "${path}" -type f | xargs cat > /dev/null 2>&1 elif [ -f "${path}" ] then - if [ -x "${path}" ] + if file -L "${path}" | grep -q 'dynamically linked' then - if file -L "${path}" | grep -q 'dynamically linked' - then - for lib in $(ldd "${path}" | awk '{ print $3 }') - do - cache_path "${lib}" - done - fi + for lib in $(ldd "${path}" | awk '{ print $3 }') + do + cache_path "${lib}" + done fi cat "${path}" >/dev/null 2>&1