Blame SOURCES/0345-dracut.sh-do-not-create-microcode-if-no-firmware-is-.patch

712866
From 13b5c1d09e0e242f1817057501292fe9d7e9ad92 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 15 Sep 2015 16:08:25 +0200
712866
Subject: [PATCH] dracut.sh: do not create microcode, if no firmware is
712866
 available
712866
712866
---
712866
 dracut.sh | 4 ++++
712866
 1 file changed, 4 insertions(+)
712866
712866
diff --git a/dracut.sh b/dracut.sh
5c6c2a
index d5f864f9..980c7ff9 100755
712866
--- a/dracut.sh
712866
+++ b/dracut.sh
712866
@@ -1493,6 +1493,10 @@ if [[ $early_microcode = yes ]]; then
712866
                         break;
712866
                     fi
712866
                 fi
712866
+                for i in $_fwdir/$_fw/$_src; do
712866
+                    [ -e $i ] && break
712866
+                    break 2
712866
+                done
712866
                 cat $_fwdir/$_fw/$_src > $_dest_dir/${ucode_dest[$idx]}
712866
                 create_early_cpio="yes"
712866
             fi