`echo "test"|xz|xz -dc --single-stream` will display "test" on terminal, redirect it to /dev/null. Cc: Harald Hoyer <harald@xxxxxxxxxx> Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> --- diff --git a/lsinitrd b/lsinitrd index 1d953b7..fb3769c 100755 --- a/lsinitrd +++ b/lsinitrd @@ -36,7 +36,7 @@ image="${1:-/boot/initramfs-$(uname -r).img}" CAT=zcat FILE_T=$(file "$image") -if echo "test"|xz|xz -dc --single-stream; then +if echo "test"|xz|xz -dc --single-stream >/dev/null; then XZ_SINGLE_STREAM="--single-stream" fi -- 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