From: privb0x23 Date: Mon, 9 Oct 2017 21:34:26 +0000 (+0000) Subject: Fix inclusion of libgcc_s.so on Void X-Git-Tag: zfs-0.7.3~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=851a7cd8331c9d1146bbcc70f6e3b208974624d3;p=zfs Fix inclusion of libgcc_s.so on Void On Void Linux (x86_64 musl) libgcc_s.so is located in "/usr/lib" so it is not found by dracut and it produces an error. Add a simple additional path check for "/usr/lib/libgcc_s.so*" and install it in the initramfs. Reviewed-by: Brian Behlendorf Signed-off-by: privb0x23 Closes #6715 --- diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in index 9bbee0e57..08aeac2d7 100755 --- a/contrib/dracut/90zfs/module-setup.sh.in +++ b/contrib/dracut/90zfs/module-setup.sh.in @@ -46,6 +46,9 @@ install() { # On systems with gcc-config (Gentoo, Funtoo, etc.): # Use the current profile to resolve the appropriate path dracut_install "/usr/lib/gcc/$(s=$(gcc-config -c); echo ${s%-*}/${s##*-})/libgcc_s.so.1" + elif [[ -n "$(ls /usr/lib/libgcc_s.so* 2>/dev/null)" ]]; then + # Try a simple path first + dracut_install /usr/lib/libgcc_s.so* else # Fallback: Guess the path and include all matches dracut_install /usr/lib/gcc/*/*/libgcc_s.so*