diff --git a/dracut.sh b/dracut.sh index daae85b8a..88b14f3eb 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1357,7 +1357,11 @@ if [[ $early_microcode == yes ]] || { [[ $acpi_override == yes ]] && [[ -d $acpi mkdir "$early_cpio_dir" fi -[[ "$dracutsysrootdir" ]] || [[ "$noexec" ]] || export DRACUT_RESOLVE_LAZY="1" +if ${DRACUT_LDD:-ldd} "${dracutsysrootdir}/bin/sh" | grep -q musl &> /dev/null; then + musl=1 +fi + +[[ "$dracutsysrootdir" ]] || [[ "$noexec" ]] || [[ "$musl" ]] || export DRACUT_RESOLVE_LAZY="1" if [[ $print_cmdline ]]; then stdloglvl=0 diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index d2ed1242d..039b4e4c1 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -94,8 +94,6 @@ install() { echo "alias nfs4 nfs" > "$initdir"/etc/modprobe.d/nfs.conf fi - inst_libdir_file 'libnfsidmap_nsswitch.so*' 'libnfsidmap/*.so' 'libnfsidmap*.so*' - _nsslibs=$( cat "$dracutsysrootdir"/{,usr/}etc/nsswitch.conf 2> /dev/null \ | sed -e '/^#/d' -e 's/^.*://' -e 's/\[NOTFOUND=return\]//' \ @@ -140,4 +138,6 @@ install() { done dracut_need_initqueue + + inst_libdir_file 'libnfsidmap_nsswitch.so*' 'libnfsidmap/*.so' 'libnfsidmap*.so*' }