Blame SOURCES/0368-dracut.sh-for-microcode-generation-skip-gpg-files.patch

18971c
From 3a39dd027f1574bdddb664d14dd592d23ce7eef1 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Wed, 18 Nov 2015 10:58:54 +0100
18971c
Subject: [PATCH] dracut.sh: for microcode generation, skip gpg files
18971c
18971c
skip all ".asc" files for the AMD microcode generation
18971c
18971c
(cherry picked from commit c44d2252bb4b9e72f2b058f8c185698e88dc8374)
18971c
---
18971c
 dracut.sh | 7 ++++++-
18971c
 1 file changed, 6 insertions(+), 1 deletion(-)
18971c
18971c
diff --git a/dracut.sh b/dracut.sh
18971c
index 5b72221e..6bbde70b 100755
18971c
--- a/dracut.sh
18971c
+++ b/dracut.sh
18971c
@@ -1497,7 +1497,12 @@ if [[ $early_microcode = yes ]]; then
18971c
                     [ -e "$i" ] && break
18971c
                     break 2
18971c
                 done
18971c
-                cat $_fwdir/$_fw/$_src > $_dest_dir/${ucode_dest[$idx]}
18971c
+                for i in $_fwdir/$_fw/$_src; do
18971c
+                    [[ -e "$i" ]] || continue
18971c
+                    # skip gpg files
18971c
+                    str_ends "$i" ".asc" && continue
18971c
+                    cat "$i" >> $_dest_dir/${ucode_dest[$idx]}
18971c
+                done
18971c
                 create_early_cpio="yes"
18971c
             fi
18971c
         done