dracut/0032.patch

34 lines
1001 B
Diff
Raw Normal View History

2017-11-29 09:48:41 +00:00
From 18a5011ff2465b7923db907100f0f59f01908c4e Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Fri, 3 Nov 2017 09:16:45 +0100
Subject: [PATCH] Revert "lsinitrd.sh: dismiss "cat" error messages"
This reverts commit e190224345f3a8b2f9e85d84bc879dd96bf265da.
---
lsinitrd.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lsinitrd.sh b/lsinitrd.sh
index f3f727c8..f4088453 100755
--- a/lsinitrd.sh
+++ b/lsinitrd.sh
@@ -172,7 +172,7 @@ fi
read -N 6 bin < "$image"
case $bin in
$'\x71\xc7'*|070701)
- CAT="cat 2>/dev/null --"
+ CAT="cat --"
is_early=$(cpio --extract --verbose --quiet --to-stdout -- 'early_cpio' < "$image" 2>/dev/null)
if [[ "$is_early" ]]; then
if [[ -n "$unpackearly" ]]; then
@@ -211,7 +211,7 @@ case $bin in
CAT="bzcat --"
;;
$'\x71\xc7'*|070701)
- CAT="cat 2>/dev/null --"
+ CAT="cat --"
;;
$'\x02\x21'*)
CAT="lz4 -d -c"