Skip to content

Commit

Permalink
fix(dracut.sh): remove microcode check based on CONFIG_MICROCODE_[AMD…
Browse files Browse the repository at this point in the history
…|INTEL]

`CONFIG_MICROCODE_AMD` and `CONFIG_MICROCODE_INTEL` are hidden since
https://lore.kernel.org/all/[email protected]/, therefore
this check is wrong and early microcode is always disabled.

(Cherry-picked commit: 61b9cd16e049434597e398be61a47e0112382c5b)

Resolves: RHEL-21023
  • Loading branch information
aafeijoo-suse authored and pvalena committed Jan 11, 2024
1 parent 81b6ee8 commit b8176e8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1084,23 +1084,20 @@ fi
if [[ $early_microcode = yes ]]; then
if [[ $hostonly ]]; then
if [[ $(get_cpu_vendor) == "AMD" ]]; then
check_kernel_config CONFIG_MICROCODE_AMD || unset early_microcode
elif [[ $(get_cpu_vendor) == "Intel" ]]; then
check_kernel_config CONFIG_MICROCODE_INTEL || unset early_microcode
if [[ $(get_cpu_vendor) == "AMD" || $(get_cpu_vendor) == "Intel" ]]; then
check_kernel_config CONFIG_MICROCODE || unset early_microcode
else
unset early_microcode
fi
else
! check_kernel_config CONFIG_MICROCODE_AMD \
&& ! check_kernel_config CONFIG_MICROCODE_INTEL \
! check_kernel_config CONFIG_MICROCODE \
&& unset early_microcode
fi
# Do not complain on non-x86 architectures as it makes no sense
case $(uname -m) in
x86_64|i?86)
[[ $early_microcode != yes ]] \
&& dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE_[AMD|INTEL]!=y"
&& dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE!=y"
;;
*) ;;
esac
Expand Down

0 comments on commit b8176e8

Please sign in to comment.