]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: do not create microcode, if no firmware is available
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Sep 2015 14:08:25 +0000 (16:08 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 15:46:16 +0000 (16:46 +0100)
(cherry picked from commit 13b5c1d09e0e242f1817057501292fe9d7e9ad92)

dracut.sh

index 9128cb01d2a1278a21b23a8babf7bc5653409bea..fe735bdb17f3c13ee951e08ebcc85c365ce45c91 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1617,6 +1617,10 @@ if [[ $early_microcode = yes ]]; then
                         break;
                     fi
                 fi
+                for i in $_fwdir/$_fw/$_src; do
+                    [ -e $i ] && break
+                    break 2
+                done
                 cat $_fwdir/$_fw/$_src > $_dest_dir/${ucode_dest[$idx]}
                 create_early_cpio="yes"
             fi