HomeFreeBSD

contrib: dracut: Conditionalize copying of libgcc_s.so.1 to glibc only

Description

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

Details

Provenance
vimproved <66446404+vimproved@users.noreply.github.com>Authored on Jun 29 2023, 7:54 PM
GitHub <noreply@github.com>Committed on Jun 29 2023, 7:54 PM
Parents
rG77a3bb1f47e6: spa.h: use IN_BASE instead of IN_FREEBSD_BASE
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG24554082bd93: contrib: dracut: Conditionalize copying of libgcc_s.so.1 to glibc only (authored by vimproved <66446404+vimproved@users.noreply.github.com>).Jun 29 2023, 7:54 PM