+               LIBC_DIR=$(ldd /usr/sbin/dropbear | sed -n -e 's,.* => 
\(/lib.*\)/libc\.so\..*,\1,p')
+               for so in $(find "${LIBC_DIR}" -name 'libnss_compat*'); do
+                       copy_exec "${so}"
+               done
+               echo 'passwd: compat' > "${DESTDIR}/etc/nsswitch.conf"

FWIW, this looks unnecessarily indirect; the libnss_compat should always
be found in the same directory as libc itself, since they are both part
of glibc, so the 'find' is a needless traversal of the /lib/* directory.
But as this is the solution implemented already in Debian and raring,
it's not a blocker for the SRU.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/834174

Title:
  cannot login via ssh when using dropbear in initramfs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/834174/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to