Re: [BUGFIX Patch] fix a wrong usage of vinfo in init.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 29.05.2012 10:06, schrieb Cong Wang:
> vinfo() reads input from stdin, not from arguments.
> 
> This is a regression introduced by:
> 
> 	commit 982d59afea5eac202c8a47f09d06d240af753a24
> 	Author: Harald Hoyer <harald@xxxxxxxxxx>
> 	Date:   Tue May 22 14:52:36 2012 +0200
> 
> 	    drop 10rpmversion module and introduce /etc/initrd-release
> 
> 
> Signed-off-by: Cong Wang <xiyou.wangcong@xxxxxxxxx>
> Cc: Harald Hoyer <harald@xxxxxxxxxx>
> 
> ---
> diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
> index b8736ec..1146a86 100755
> --- a/modules.d/99base/init.sh
> +++ b/modules.d/99base/init.sh
> @@ -90,7 +90,7 @@ else
>  fi
>  
>  [ -f /etc/initrd-release ] && . /etc/initrd-release
> -[ -n "$VERSION" ] && vinfo "dracut-$VERSION"
> +[ -n "$VERSION" ] && echo "dracut-$VERSION" | vinfo
>  
>  source_conf /etc/conf.d
>  

Thanks! even simpler:

-[ -n "$VERSION" ] && vinfo "dracut-$VERSION"
+[ -n "$VERSION" ] && info "dracut-$VERSION"
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux