]> git.proxmox.com Git - mirror_zfs.git/commit
contrib: dracut: Conditionalize copying of libgcc_s.so.1 to glibc only
authorvimproved <66446404+vimproved@users.noreply.github.com>
Thu, 29 Jun 2023 19:54:37 +0000 (19:54 +0000)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 19:54:37 +0000 (12:54 -0700)
commit24554082bd93cb90400c4cb751275debda229009
tree7ed0220c357f16f941dbccba61065adf41a46fc7
parent77a3bb1f47e67c233eb1961b8746748c02bafde1
contrib: dracut: Conditionalize copying of libgcc_s.so.1 to glibc only

The issue that this is designed to work around is only applicable to
glibc, since it's caused by glibc's pthread_cancel() implementation
using dlopen on libgcc_s.so.1 (and therefor not triggering dracut to
include it in the initramfs). This commit adds an extra condition to the
workaround that tests for glibc via "ldconfig -p | grep -qF 'libc.so.6'"
(which should only be present on glibc systems).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Violet Purcell <vimproved@inventati.org>
Closes #14992
contrib/dracut/90zfs/module-setup.sh.in