]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd: silence xz test
authorHarald Hoyer <harald@redhat.com>
Thu, 9 Feb 2012 10:36:21 +0000 (11:36 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 9 Feb 2012 10:36:21 +0000 (11:36 +0100)
lsinitrd

index 1d953b758434ca76a73173ee2b9c96dbed95c88a..11e5c7a329546e719434bd3b110b8f70522847ce 100755 (executable)
--- 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 2>&1; then
     XZ_SINGLE_STREAM="--single-stream"
 fi