summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/md5-cache/sys-kernel/dracut-059-r15 (renamed from metadata/md5-cache/sys-kernel/dracut-059-r10)2
-rw-r--r--metadata/pkg_desc_index2
-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
4 files changed, 34 insertions, 2 deletions
diff --git a/metadata/md5-cache/sys-kernel/dracut-059-r10 b/metadata/md5-cache/sys-kernel/dracut-059-r15
index 0348eddb..3839b49b 100644
--- a/metadata/md5-cache/sys-kernel/dracut-059-r10
+++ b/metadata/md5-cache/sys-kernel/dracut-059-r15
@@ -13,4 +13,4 @@ RESTRICT=!test? ( test )
SLOT=0
SRC_URI=https://github.com/dracutdevs/dracut/archive/refs/tags/059.tar.gz -> dracut-059.tar.gz
_eclasses_=bash-completion-r1 f5e7a020fd9c741740756aac61bf75ff multilib c19072c3cd7ac5cb21de013f7e9832e0 systemd c8b03e8df84486aa991d4396686e8942 toolchain-funcs e56c7649b804f051623c8bc1a1c44084
-_md5_=18b6a42c3d1d095e7fd4fd697316ff91
+_md5_=114f3c4bbef05f74f5f14461722a5057
diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index
index 6660ef43..14d767b0 100644
--- a/metadata/pkg_desc_index
+++ b/metadata/pkg_desc_index
@@ -63,7 +63,7 @@ sys-fs/zfs 2.2.2: ZFS meta-package (Gentoo compatibility ebuild)
sys-fs/zfs-utils 2.2.2: Userland utilities for ZFS Linux kernel module
sys-kernel/bcmwl-dkms 6.30.223.271-r8: Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver source
sys-kernel/dkms 2.3-r3: Dynamic Kernel Module Support
-sys-kernel/dracut 059-r10: Generic initramfs generation tool
+sys-kernel/dracut 059-r15: Generic initramfs generation tool
sys-kernel/linux-image-redcore 6.7.6: Redcore Linux Kernel Image
sys-kernel/linux-image-redcore-lts 5.15.149 6.1.79 6.6.18: Redcore Linux LTS Kernel Image
sys-kernel/linux-sources-redcore 6.7.6: Redcore Linux Kernel Sources
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