summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-10 06:35:31 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-10 06:35:31 +0000
commitc433fea82dfeca006727bbc2198cba424d3e0a3b (patch)
tree4d32d8acf12a1231edf9d789f96e5162a5631859 /sys-kernel
parentb65b9a5a20d3bd30d9de7d9bbe53dad4d708a991 (diff)
sys-kernel/dracut : revision bump (backport fix for microcode_* loading)
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/dracut/dracut-044-r7.ebuild (renamed from sys-kernel/dracut/dracut-044-r6.ebuild)1
-rw-r--r--sys-kernel/dracut/files/dracut-044-backport-fix-for-microcode-loading.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/sys-kernel/dracut/dracut-044-r6.ebuild b/sys-kernel/dracut/dracut-044-r7.ebuild
index 6f6d3854..6ebd8635 100644
--- a/sys-kernel/dracut/dracut-044-r6.ebuild
+++ b/sys-kernel/dracut/dracut-044-r7.ebuild
@@ -68,6 +68,7 @@ PATCHES=(
""${FILESDIR}"/044-0004-redcore-change-default-initramfs-name.patch"
""${FILESDIR}"/"${P}"-bash-4.4.patch"
""${FILESDIR}"/"${P}"-preserve-xattrs-when-copying.patch"
+ ""${FILESDIR}"/"${P}"-backport-fix-for-microcode-loading.patch"
)
#
diff --git a/sys-kernel/dracut/files/dracut-044-backport-fix-for-microcode-loading.patch b/sys-kernel/dracut/files/dracut-044-backport-fix-for-microcode-loading.patch
new file mode 100644
index 00000000..a7454d3b
--- /dev/null
+++ b/sys-kernel/dracut/files/dracut-044-backport-fix-for-microcode-loading.patch
@@ -0,0 +1,12 @@
+diff -Nur a/dracut-functions.sh b/dracut-functions.sh
+--- a/dracut-functions.sh 2015-11-25 13:22:28.000000000 +0000
++++ b/dracut-functions.sh 2018-01-10 06:32:03.255256206 +0000
+@@ -652,7 +652,7 @@
+ if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
+ # If family greater or equal than 0x15
+ if [[ $family -ge 21 ]]; then
+- printf "microcode_amd_fam15h.bin"
++ printf "microcode_amd_fam%xh.bin" $family
+ else
+ printf "microcode_amd.bin"
+ fi