summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-24 16:08:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-24 16:08:05 +0000
commit4c8bf1cf96adc6bf5f3ef41de4435f5b925d86b8 (patch)
tree6ea371fee5dfc10dceac975653e908c091fba522 /sys-kernel
parentf0441898622982ede21c3104ca8beb040489dadf (diff)
sys-kernel/dracut : revision bump
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/dracut/dracut-059-r15.ebuild (renamed from sys-kernel/dracut/dracut-059-r10.ebuild)1
-rw-r--r--sys-kernel/dracut/files/059-early_microcode.patch31
2 files changed, 32 insertions, 0 deletions
diff --git a/sys-kernel/dracut/dracut-059-r10.ebuild b/sys-kernel/dracut/dracut-059-r15.ebuild
index 50a5fb81..ab43df91 100644
--- a/sys-kernel/dracut/dracut-059-r10.ebuild
+++ b/sys-kernel/dracut/dracut-059-r15.ebuild
@@ -84,6 +84,7 @@ PATCHES=(
"${FILESDIR}"/dracut-059-dmsquash-live.patch
"${FILESDIR}"/059-systemd-pcrphase.patch
"${FILESDIR}"/059-systemd-executor.patch
+ "${FILESDIR}"/059-early_microcode.patch
"${FILESDIR}"/dracut-059-install-new-systemd-hibernate-resume.service.patch
"${FILESDIR}"/059-redcore-change-default-initramfs-name.patch
)
diff --git a/sys-kernel/dracut/files/059-early_microcode.patch b/sys-kernel/dracut/files/059-early_microcode.patch
new file mode 100644
index 00000000..1768f884
--- /dev/null
+++ b/sys-kernel/dracut/files/059-early_microcode.patch
@@ -0,0 +1,31 @@
+diff -Nur a/dracut.sh b/dracut.sh
+--- a/dracut.sh 2022-12-24 16:49:27.000000000 +0000
++++ b/dracut.sh 2024-02-24 16:05:11.347129929 +0000
+@@ -1495,23 +1495,20 @@
+
+ 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 "${DRACUT_ARCH:-$(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