diff options
author | dacianstremtan <[email protected]> | 2019-06-20 15:27:14 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-06-20 12:27:14 -0700 |
commit | 84b4201f3202fb6bf6beed7a27abf38292f67b41 (patch) | |
tree | aa5dbf0926dbec07fa559f95ec93e541dcbce1a8 /contrib/dracut | |
parent | 050d720c43b6285fc0c30e1e97591f6b796dbd68 (diff) |
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 <[email protected]>
Reviewed-by: Garrett Fields <[email protected]>
Signed-off-by: Dacian Reece-Stremtan <[email protected]>
Closes #8920
Closes #8938
Diffstat (limited to 'contrib/dracut')
-rwxr-xr-x | contrib/dracut/90zfs/zfs-lib.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/dracut/90zfs/zfs-lib.sh.in b/contrib/dracut/90zfs/zfs-lib.sh.in index 23c07af9e..44021c6e5 100755 --- a/contrib/dracut/90zfs/zfs-lib.sh.in +++ b/contrib/dracut/90zfs/zfs-lib.sh.in @@ -144,7 +144,7 @@ ask_for_password() { { flock -s 9; # Prompt for password with plymouth, if installed and running. - if whereis plymouth >/dev/null 2>&1 && plymouth --ping 2>/dev/null; then + if type plymouth >/dev/null 2>&1 && plymouth --ping 2>/dev/null; then plymouth ask-for-password \ --prompt "$ply_prompt" --number-of-tries="$ply_tries" \ --command="$ply_cmd" |