mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-04 12:41:39 +00:00
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.
This commit is contained in:
committed by
Harald Hoyer
parent
53d90f9582
commit
cffae62bcb
+4
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user