summaryrefslogtreecommitdiff
path: root/sys-kernel/dracut/files/dracut-044-backport-fix-for-microcode-loading.patch
blob: a7454d3b56f7c3fb9685832225036b6c5cbd5cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur a/dracut-functions.sh b/dracut-functions.sh
--- a/dracut-functions.sh	2015-11-25 13:22:28.000000000 +0000
+++ b/dracut-functions.sh	2018-01-10 06:32:03.255256206 +0000
@@ -652,7 +652,7 @@
     if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
         # If family greater or equal than 0x15
         if [[ $family -ge 21 ]]; then
-            printf "microcode_amd_fam15h.bin"
+            printf "microcode_amd_fam%xh.bin" $family
         else
             printf "microcode_amd.bin"
         fi