diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-02-02 00:19:31 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2015-02-03 09:50:45 +0100 |
commit | cffae62bcb6912fbaf1b7b282d9d170c9d308897 (patch) | |
tree | 9af0cd3780a29264a5702f7efe10ce297f3084ff /test/test-functions | |
parent | 53d90f9582f96208b3674da823ad1a3d2c3b1aa4 (diff) | |
download | systemd-cffae62bcb6912fbaf1b7b282d9d170c9d308897.tar.gz systemd-cffae62bcb6912fbaf1b7b282d9d170c9d308897.tar.bz2 systemd-cffae62bcb6912fbaf1b7b282d9d170c9d308897.zip |
tests: install all required libnss modules
Don't assume "files" for everything in nsswitch. Instead, ask "getent passwd"
about which libnss modules it dlopen()s, and install these.
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions index 42c954d565..34af32a798 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() { |