Hello On 4 August 2011 21:17, Daniel Baumann <daniel.baum...@progress-technologies.net> wrote: > On 07/26/2011 11:32 PM, Michael Prokop wrote:
> >> 30_support_multiarch_dns.patch > > i'll wait for that on comments from Michal. > I propose to add this code to to initramfs-hooks to handle nss modules and similar ( http://paste.debian.net/plain/125089 ): # include a module dynamically loaded by a library # $1 - directory to search for the library (may be / to search all of initramfs) # $2 - library to search for # $3 - module to include relative to library found # example: lib_module /lib 'libc.so.*' 'libnss_dns.so.*' # lib_module /usr/lib 'libpango-*.so.*' 'pango/*/modules/pango-basic-fc.so' # Does not handle spaces in directory or module names and .. in module names. lib_module() { local dir lib mod lib_dir i j dir="$1" lib="$2" mod="$3" { find "${DESTDIR}${dir}" -name "${lib}" -type l find "${DESTDIR}${dir}" -name "${lib}" -type f ; } | { while read i ; do lib_dir="$(dirname "$i" | sed -e "s ^${DESTDIR} " )" ls "${lib_dir}"/${mod} | { while read j ; do copy_exec "$j" done ; } done ; } } Note that this installs the module exactly for the libraries that are included in the initramfs, and does not install 32bit modules from ia32-libs when the 32bit library is not used by any binary in initramfs. This requires that the module is located in the same place relative to the library which seems to be the case so far wherever the library is installed. I am waiting for feedback from initramfs-tools people. Thanks Michal -- To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOMqctRyBNoE1LgJA=erucgas1aubzewev88dk-5zebkup0...@mail.gmail.com