From 6b7dca1631cc0df6292c43008b6ff7ab7f60aad2 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 14 Dec 2017 15:36:54 +0100 Subject: [PATCH] Merge pull request #314 from danimo/simplify-amd-ucode Simplify microcode lookup for for AMD CPUs --- dracut-functions.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dracut-functions.sh b/dracut-functions.sh index 642dcf09..e99c4533 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -662,13 +662,8 @@ get_ucode_file () local stepping=`grep -E "stepping" /proc/cpuinfo | head -1 | sed s/.*:\ //` if [[ "$(get_cpu_vendor)" == "AMD" ]]; then - # If family greater than or equal to 0x17 - if [[ $family -ge 23 ]]; then - printf "microcode_amd_fam17h.bin" - elif [[ $family -eq 22 ]]; then - printf "microcode_amd_fam16h.bin" - elif [[ $family -eq 21 ]]; then - printf "microcode_amd_fam15h.bin" + if [[ $family -ge 21 ]]; then + printf "microcode_amd_fam%xh.bin" $family else printf "microcode_amd.bin" fi