]> git.proxmox.com Git - mirror_zfs.git/commit
Fix initramfs hook for merged /usr/lib and /lib
authorMatt Kemp <matt@mattikus.com>
Mon, 27 Feb 2017 20:03:23 +0000 (14:03 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Feb 2017 20:03:23 +0000 (12:03 -0800)
commit912e2ba92f45b61df476e7e15da33e0ea3eb0ae5
tree097c97c8d7e52e10b4139381046567a6b5bce852
parent66eead53c9d2480f2a464ef170920953431ad200
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
contrib/initramfs/hooks/zfs