mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
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
This commit is contained in:
parent
fb6f6b47d6
commit
01cc94f68d
@ -144,7 +144,7 @@ ask_for_password() {
|
|||||||
|
|
||||||
{ flock -s 9;
|
{ flock -s 9;
|
||||||
# Prompt for password with plymouth, if installed and running.
|
# 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 \
|
plymouth ask-for-password \
|
||||||
--prompt "$ply_prompt" --number-of-tries="$ply_tries" \
|
--prompt "$ply_prompt" --number-of-tries="$ply_tries" \
|
||||||
--command="$ply_cmd"
|
--command="$ply_cmd"
|
||||||
|
Loading…
Reference in New Issue
Block a user