HomeFreeBSD

Fix initramfs hook for merged /usr/lib and /lib

Description

Fix initramfs hook for merged /usr/lib and /lib

Under a merged /lib -> /usr/lib which renders /lib as a symlink,
find /lib -type f -name libgcc_s.so.1 will not return a result as
find will not traverse the symlink. Modifying it to `find /lib/ -type
f -name libgcc_s.so.1` should work for both symlinked and non-symlinked
/lib directories.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Kemp <matt@mattikus.com>
Closes #5834

Details

Provenance
Matt Kemp <matt@mattikus.com>Authored on Feb 27 2017, 8:03 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 27 2017, 8:03 PM
Parents
rG66eead53c9d2: Clean up by-dnode code in dmu_tx.c
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG912e2ba92f45: Fix initramfs hook for merged /usr/lib and /lib (authored by Matt Kemp <matt@mattikus.com>).Feb 27 2017, 8:03 PM