Harald Hoyer 58be0c
From d20d307d697811f28fbd74111238c43740697226 Mon Sep 17 00:00:00 2001
Harald Hoyer 58be0c
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 58be0c
Date: Thu, 9 Feb 2012 11:36:21 +0100
Harald Hoyer 58be0c
Subject: [PATCH] lsinitrd: silence xz test
Harald Hoyer 58be0c
Harald Hoyer 58be0c
---
Harald Hoyer 58be0c
 lsinitrd |    2 +-
Harald Hoyer 58be0c
 1 files changed, 1 insertions(+), 1 deletions(-)
Harald Hoyer 58be0c
Harald Hoyer 58be0c
diff --git a/lsinitrd b/lsinitrd
Harald Hoyer 58be0c
index 1d953b7..11e5c7a 100755
Harald Hoyer 58be0c
--- a/lsinitrd
Harald Hoyer 58be0c
+++ b/lsinitrd
Harald Hoyer 58be0c
@@ -36,7 +36,7 @@ image="${1:-/boot/initramfs-$(uname -r).img}"
Harald Hoyer 58be0c
 CAT=zcat
Harald Hoyer 58be0c
 FILE_T=$(file "$image")
Harald Hoyer 58be0c
 
Harald Hoyer 58be0c
-if echo "test"|xz|xz -dc --single-stream; then
Harald Hoyer 58be0c
+if echo "test"|xz|xz -dc --single-stream >/dev/null 2>&1; then
Harald Hoyer 58be0c
     XZ_SINGLE_STREAM="--single-stream"
Harald Hoyer 58be0c
 fi
Harald Hoyer 58be0c