From: Harald Hoyer Date: Wed, 18 Nov 2015 09:58:54 +0000 (+0100) Subject: dracut.sh: for microcode generation, skip gpg files X-Git-Tag: 033-502~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a39dd027f1574bdddb664d14dd592d23ce7eef1;p=thirdparty%2Fdracut.git dracut.sh: for microcode generation, skip gpg files skip all ".asc" files for the AMD microcode generation (cherry picked from commit c44d2252bb4b9e72f2b058f8c185698e88dc8374) --- diff --git a/dracut.sh b/dracut.sh index 5b72221e7..6bbde70b9 100755 --- 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