[systemd-devel] [PATCH 4/6] tests: install all required libnss modules
Martin Pitt
martin.pitt at ubuntu.com
Sun Feb 1 15:19:31 PST 2015
Don't assume "files" for everything in nsswitch. Instead, ask "getent passwd"
about which libnss modules it dlopen()s, and install these.
---
test/test-functions | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/test-functions b/test/test-functions
index 42c954d..34af32a 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -241,7 +241,10 @@ install_debug_tools() {
install_libnss() {
# install libnss_files for login
- inst_libdir_file "libnss_files*"
+ NSS_LIBS=$(LD_DEBUG=files getent passwd 2>&1 >/dev/null |sed -n '/calling init: .*libnss_/ {s!^.* /!/!; p}')
+ for l in $NSS_LIBS; do
+ dracut_install $l
+ done
}
install_dbus() {
--
2.1.4
More information about the systemd-devel
mailing list