1 Star 0 Fork 16

hanliyang/OpenCloudOS_Stream_grub2

forked from OpenCloudOS Stream/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0138-grub-install-record-pcrs.patch 787 Bytes
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2024-04-07 16:45 . update patches
From b5b02816fc33f1c45a984f3c9c7f26f058504422 Mon Sep 17 00:00:00 2001
From: nilusyi <[email protected]>
Date: Tue, 2 Apr 2024 10:46:45 +0800
Subject: [PATCH 138/272] grub install record pcrs
Signed-off-by: SUSE
---
util/grub-install.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/util/grub-install.c b/util/grub-install.c
index 62012d055..0cdfa9f4e 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -1533,6 +1533,13 @@ main (int argc, char *argv[])
grub_util_unlink (load_cfg);
+ if (1)
+ {
+ load_cfg_f = grub_util_fopen (load_cfg, "wb");
+ have_load_cfg = 1;
+ fprintf (load_cfg_f, "tpm_record_pcrs 0-9\n");
+ }
+
if (debug_image && debug_image[0])
{
load_cfg_f = grub_util_fopen (load_cfg, "wb");
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hanliyang/OpenCloudOS_Stream_grub2.git
[email protected]:hanliyang/OpenCloudOS_Stream_grub2.git
hanliyang
OpenCloudOS_Stream_grub2
OpenCloudOS_Stream_grub2
master

搜索帮助