base/dracut-lib.sh: use "command -v" in pidof()

"type -P" doesn't work in dash
master
Alexander Tsoy 2018-09-09 13:57:33 +03:00 committed by Harald Hoyer
parent 838f22259a
commit f4334e9bdf
1 changed files with 1 additions and 1 deletions

View File

@ -1060,7 +1060,7 @@ if ! command -v pidof >/dev/null 2>/dev/null; then
debug_on
return 1
fi
_exe=$(type -P "$1")
_exe=$(command -v "$1")
for i in /proc/*/exe; do
[ -e "$i" ] || continue
if [ -n "$_exe" ]; then