=== modified file 'initramfs-tools-hook' --- initramfs-tools-hook 2008-12-10 01:26:02 +0000 +++ initramfs-tools-hook 2009-02-07 03:28:24 +0000 @@ -168,7 +168,9 @@ chmod a+rX "${DESTDIR}$dir" fi done -for dir in /lib /usr/lib; do - find "${DESTDIR}$dir" \! -perm -u+rw,g+r -prune -or -print0 \ - | xargs --null --no-run-if-empty chmod a+rX +for dir in "${DESTDIR}"/lib* "${DESTDIR}"/usr/lib*; do + if [ -d "$dir" ]; then + find "$dir" \! -perm -u+rw,g+r -prune -or -print0 \ + | xargs --null --no-run-if-empty chmod a+rX + fi done