On 01/24/2014 04:19 PM, Stig Telfer wrote:
> It appears there is a simple substitution error in the pidof shell function 
> which causes it to fail to find processes.  In my case, processes started by 
> 95nfs are not terminated in the cleanup hook.  This causes knock-on effects 
> disturbing the root filesystem service dependencies. 
> 
> Enjoy,
> Stig Telfer
> 
> diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
> index 85f7cdf..3f10bc1 100755
> --- a/modules.d/99base/dracut-lib.sh
> +++ b/modules.d/99base/dracut-lib.sh
> @@ -969,7 +969,7 @@ if ! command -v pidof >/dev/null 2>/dev/null; then
>          for i in /proc/*/exe; do
>              [ -e "$i" ] || return 1
>              if [ -n "$_exe" ]; then
> -                [ "$i" -ef "$_cmd" ] || continue
> +                [ "$i" -ef "$_exe" ] || continue
>              else
>                  _rl=$(readlink -f "$i");
>                  [ "${_rl%/$_cmd}" != "$_rl" ] || continue
> 
> 

Thanks! Pushed.

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to