Blame 0046-lsinitrd.sh-fixed-unpack-and-skipcpio-search.patch

Harald Hoyer b38677
From 98fd06934c9e10567b4755714191cd2aee8822ac Mon Sep 17 00:00:00 2001
Harald Hoyer b38677
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer b38677
Date: Mon, 11 Apr 2016 15:22:11 +0200
Harald Hoyer b38677
Subject: [PATCH] lsinitrd.sh: fixed unpack and skipcpio search
Harald Hoyer b38677
Harald Hoyer b38677
---
Harald Hoyer b38677
 lsinitrd.sh | 7 +++++--
Harald Hoyer b38677
 1 file changed, 5 insertions(+), 2 deletions(-)
Harald Hoyer b38677
Harald Hoyer b38677
diff --git a/lsinitrd.sh b/lsinitrd.sh
Harald Hoyer b38677
index 224b9c1..b19a66a 100755
Harald Hoyer b38677
--- a/lsinitrd.sh
Harald Hoyer b38677
+++ b/lsinitrd.sh
Harald Hoyer b38677
@@ -40,7 +40,6 @@ usage()
Harald Hoyer b38677
 
Harald Hoyer b38677
 sorted=0
Harald Hoyer b38677
 modules=0
Harald Hoyer b38677
-unpack=0
Harald Hoyer b38677
 unset verbose
Harald Hoyer b38677
 declare -A filenames
Harald Hoyer b38677
 
Harald Hoyer b38677
@@ -184,7 +183,11 @@ case $bin in
Harald Hoyer b38677
                 echo "Early CPIO image"
Harald Hoyer b38677
                 list_files
Harald Hoyer b38677
             fi
Harald Hoyer b38677
-            SKIP="$dracutbasedir/skipcpio"
Harald Hoyer b38677
+            if [[ -d "$dracutbasedir/skipcpio" ]]; then
Harald Hoyer b38677
+                SKIP="$dracutbasedir/skipcpio/skipcpio"
Harald Hoyer b38677
+            else
Harald Hoyer b38677
+                SKIP="$dracutbasedir/skipcpio"
Harald Hoyer b38677
+            fi
Harald Hoyer b38677
             if ! [[ -x $SKIP ]]; then
Harald Hoyer b38677
                 echo
Harald Hoyer b38677
                 echo "'$SKIP' not found, cannot display remaining contents!" >&2