HomeFreeBSD

Replace whereis with type in zfs-lib.sh

Description

Replace whereis with type in zfs-lib.sh

The whereis command should not be used since it may not exist
in the initramfs. The dracut plymouth module also uses the type
command instead of whereis.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Garrett Fields <ghfields@gmail.com>
Signed-off-by: Dacian Reece-Stremtan <dacianstremtan@gmail.com>
Closes #8920
Closes #8938

Details

Provenance
dacianstremtan <35844628+dacianstremtan@users.noreply.github.com>Authored on Jun 20 2019, 7:27 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 20 2019, 7:27 PM
Parents
rG050d720c43b6: Remove dedupditto functionality
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG84b4201f3202: Replace whereis with type in zfs-lib.sh (authored by dacianstremtan <35844628+dacianstremtan@users.noreply.github.com>).Jun 20 2019, 7:27 PM