Skip to content

Commit 6c80408

Browse files
committed
fix(dracut.sh): remove microcode check based on CONFIG_MICROCODE_[AMD|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.
1 parent b4e23ce commit 6c80408

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

dracut.sh

+4-7
Original file line numberDiff line numberDiff line change
@@ -1561,23 +1561,20 @@ fi
15611561
15621562
if [[ $early_microcode == yes ]]; then
15631563
if [[ $hostonly ]]; then
1564-
if [[ $(get_cpu_vendor) == "AMD" ]]; then
1565-
check_kernel_config CONFIG_MICROCODE_AMD || unset early_microcode
1566-
elif [[ $(get_cpu_vendor) == "Intel" ]]; then
1567-
check_kernel_config CONFIG_MICROCODE_INTEL || unset early_microcode
1564+
if [[ $(get_cpu_vendor) == "AMD" || $(get_cpu_vendor) == "Intel" ]]; then
1565+
check_kernel_config CONFIG_MICROCODE || unset early_microcode
15681566
else
15691567
unset early_microcode
15701568
fi
15711569
else
1572-
! check_kernel_config CONFIG_MICROCODE_AMD \
1573-
&& ! check_kernel_config CONFIG_MICROCODE_INTEL \
1570+
! check_kernel_config CONFIG_MICROCODE \
15741571
&& unset early_microcode
15751572
fi
15761573
# Do not complain on non-x86 architectures as it makes no sense
15771574
case "${DRACUT_ARCH:-$(uname -m)}" in
15781575
x86_64 | i?86)
15791576
[[ $early_microcode != yes ]] \
1580-
&& dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE_[AMD|INTEL]!=y"
1577+
&& dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE!=y"
15811578
;;
15821579
*) ;;
15831580
esac

0 commit comments

Comments
 (0)