]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: for microcode generation, skip gpg files
authorHarald Hoyer <harald@redhat.com>
Wed, 18 Nov 2015 09:58:54 +0000 (10:58 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 29 Feb 2016 10:56:05 +0000 (11:56 +0100)
skip all ".asc" files for the AMD microcode generation

(cherry picked from commit c44d2252bb4b9e72f2b058f8c185698e88dc8374)

dracut.sh

index 5b72221e7d73eaabf25da9f3f42f93749d06f0a9..6bbde70b968b239b127fde0973b3ec3ea1a583b1 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1497,7 +1497,12 @@ if [[ $early_microcode = yes ]]; then
                     [ -e "$i" ] && break
                     break 2
                 done
-                cat $_fwdir/$_fw/$_src > $_dest_dir/${ucode_dest[$idx]}
+                for i in $_fwdir/$_fw/$_src; do
+                    [[ -e "$i" ]] || continue
+                    # skip gpg files
+                    str_ends "$i" ".asc" && continue
+                    cat "$i" >> $_dest_dir/${ucode_dest[$idx]}
+                done
                 create_early_cpio="yes"
             fi
         done