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