Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com> (cherry picked from commit 3eda58b0c237aec4f718f337d67fcb102aed3d44)
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 7d26233eb454d75419476eb9d1729ea3b2972238 Mon Sep 17 00:00:00 2001
|
|
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
|
|
Date: Wed, 18 Dec 2024 09:26:33 +0000
|
|
Subject: [PATCH] fix not verifying grub.cfg when loading it
|
|
|
|
Fixes: c8b6446348a4 ("skip verification when not loading grub.cfg")
|
|
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
|
|
---
|
|
grub-core/normal/main.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
|
|
index f3e14bf..06d91c0 100644
|
|
--- a/grub-core/normal/main.c
|
|
+++ b/grub-core/normal/main.c
|
|
@@ -134,7 +134,7 @@ read_config_file (const char *config)
|
|
}
|
|
|
|
/* Try to open the config file. */
|
|
- rawfile = grub_file_open (config, GRUB_FILE_TYPE_SKIP_SIGNATURE);
|
|
+ rawfile = grub_file_open (config, GRUB_FILE_TYPE_CONFIG);
|
|
if (! rawfile)
|
|
return 0;
|
|
|
|
@@ -373,7 +373,7 @@ grub_try_normal (const char *variable)
|
|
if (config)
|
|
{
|
|
grub_file_t file;
|
|
- file = grub_file_open (config, GRUB_FILE_TYPE_CONFIG);
|
|
+ file = grub_file_open (config, GRUB_FILE_TYPE_SKIP_SIGNATURE);
|
|
if (file)
|
|
{
|
|
grub_file_close (file);
|
|
--
|
|
2.33.0
|
|
|