From 16d89a93b3a05030dd55feadb670dad3ce5be4bd Mon Sep 17 00:00:00 2001 From: yangchunchun Date: Wed, 10 Sep 2025 15:54:57 +0800 Subject: [PATCH] config microcode support Hygon --- ...ns.sh-config-microcode-support-Hygon.patch | 23 +++++++++++++++++++ dracut.spec | 6 ++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 backport-fix-dracut-functions.sh-config-microcode-support-Hygon.patch diff --git a/backport-fix-dracut-functions.sh-config-microcode-support-Hygon.patch b/backport-fix-dracut-functions.sh-config-microcode-support-Hygon.patch new file mode 100644 index 0000000..d6c434e --- /dev/null +++ b/backport-fix-dracut-functions.sh-config-microcode-support-Hygon.patch @@ -0,0 +1,23 @@ +From 2a7298b5116b9e7198d85088760ad1813d883779 Mon Sep 17 00:00:00 2001 +From: yangchunchun +Date: Wed, 10 Sep 2025 15:42:26 +0800 +Subject: [PATCH] config microcode support Hygon + + +diff --git a/dracut-functions.sh b/dracut-functions.sh +index cf7eed8..7ff97aa 100755 +--- a/dracut-functions.sh ++++ b/dracut-functions.sh +@@ -719,6 +719,9 @@ get_cpu_vendor() { + if grep -qE AMD /proc/cpuinfo; then + printf "AMD" + fi ++ if grep -qE Hygon /proc/cpuinfo; then ++ printf "AMD" ++ fi + if grep -qE Intel /proc/cpuinfo; then + printf "Intel" + fi +-- +2.43.5 + diff --git a/dracut.spec b/dracut.spec index 6998ea3..9f1bf81 100644 --- a/dracut.spec +++ b/dracut.spec @@ -9,7 +9,7 @@ Name: dracut Version: 055 -Release: 15 +Release: 16 Summary: Initramfs generator using udev @@ -103,6 +103,7 @@ Patch6052: backport-fix-dracut-install-copy-xattr-when-use-clone-ioctl.patch Patch9000: remove-iscsi-related-code-since-it-is-no-longer-main.patch Patch9001: fix-dracut-install-copy-mode-when-use-clone-ioctl.patch +Patch9002: backport-fix-dracut-functions.sh-config-microcode-support-Hygon.patch Source1: https://www.gnu.org/licenses/lgpl-2.1.txt Source2: openEuler.conf.example @@ -577,6 +578,9 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne %endif %changelog +* Wed Sep 10 2025 Chunchun Yang - 055-16 +- backport-fix-dracut-functions.sh-config-microcode-support-Hygon.patch + * Fri Sep 6 2024 luhuaxin - 055-15 - fix(dracut-install): copy mode when use clone ioctl -- Gitee