tpcm: modify GRUB_IPMI_TIMEOUT_MS from 7000 to 2000

Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
This commit is contained in:
Qiumiao Zhang 2023-06-18 15:54:38 +08:00
parent 5af0a9c1ee
commit 0254962f61
3 changed files with 34 additions and 1 deletions

View File

@ -449,3 +449,4 @@ Patch0448: backport-net-bootp-Fix-unchecked-return-value.patch
Patch0449: backport-osdep-linux-hostdisk-Modify-sector-by-sysfs-as-disk-sector.patch
Patch0450: skip-verification-when-not-loading-grub.cfg.patch
Patch0451: tpcm-support-control-switch.patch
Patch0452: tpcm-modify-GRUB_IPMI_TIMEOUT_MS-from-7000-to-2000.patch

View File

@ -8,7 +8,7 @@
Name: grub2
Epoch: 1
Version: 2.04
Release: 34
Release: 35
Summary: Bootloader with support for Linux, Multiboot and more
License: GPLv3+
URL: http://www.gnu.org/software/grub/
@ -442,6 +442,12 @@ rm -r /boot/grub2.tmp/ || :
%{_datadir}/man/man*
%changelog
* Sun Jun 18 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.04-35
- Type:requirement
- CVE:NA
- SUG:NA
- DESC:tpcm: modify GRUB_IPMI_TIMEOUT_MS from 7000 to 2000
* Wed Jun 14 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.04-34
- Type:requirement
- CVE:NA

View File

@ -0,0 +1,26 @@
From 77bdd46676a58e77c38efd82eee1817159ec031b Mon Sep 17 00:00:00 2001
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
Date: Sun, 18 Jun 2023 15:46:37 +0800
Subject: [PATCH] tpcm: modify GRUB_IPMI_TIMEOUT_MS from 7000 to 2000
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
---
include/grub/efi/tpcm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/grub/efi/tpcm.h b/include/grub/efi/tpcm.h
index b0265e2..d4cf93b 100644
--- a/include/grub/efi/tpcm.h
+++ b/include/grub/efi/tpcm.h
@@ -26,7 +26,7 @@
#define FIRMWARE_VERSION_SIZE 32
#define FIRMWARE_HASH_CONTENT_SIZE 32
#define FIRMWARE_NAME_SIZE 32
-#define GRUB_IPMI_TIMEOUT_MS 7000
+#define GRUB_IPMI_TIMEOUT_MS 2000
// LUN
#define IPMI_BMC_LUN 0x00
--
2.33.0