chiark / gitweb /
test-functions:install_libnss() call dracut_install with all $NSS_LIBS
[elogind.git] / test / test-functions
index 80e0f65697e89a6a52a15e24f6db0aeb4f3bcedc..368e7a1e52ca33ea45c8e2c038d4aefc6e53fd55 100644 (file)
@@ -233,6 +233,8 @@ EOF
 install_basic_tools() {
     [[ $BASICTOOLS ]] && dracut_install $BASICTOOLS
     dracut_install -o sushell
+    # in Debian ldconfig is just a shell script wrapper around ldconfig.real
+    dracut_install -o ldconfig.real
 }
 
 install_debug_tools() {
@@ -242,9 +244,7 @@ install_debug_tools() {
 install_libnss() {
     # install libnss_files for login
     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
+    dracut_install $NSS_LIBS
 }
 
 install_dbus() {