Since afaict this hasn't been fixed upstream, and it just cost me half
an hour /again/, here is Michael's fix in its own hook for convenience.

Just put this into /etc/initramfs-tools/hooks and run update-initramfs -u

This way we don't have to modify apt-managed initramfs files while
waiting for a fix. Been down that path once...

Alex

On 09/02/2011 11:04 AM, Michael Stapelberg wrote:
> Hi,
> 
> attached is a patch which works on all architectures. It uses dpkg -L to list
> the contents of libc6 (containing the libnss* files) because that seems to be
> the easiest way to work around having to get the multi-arch triplet
> (x86_64-linux-gnu).
> 
> Best regards,
> Michael
#!/bin/sh

PREREQ=""

prereqs()
{
        echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
        prereqs
        exit 0
        ;;
esac

cp $(dpkg -L libc6 | grep libnss_ | tr '\n' ' ') "${DESTDIR}/lib/"

Reply via email to