Skip to content

Commit d5d03a7

Browse files
committed
Set suisbd=1 environment variable
9006 [PATCH] Set suisbd=1 environment variable This is useful in case of GRUB chaining, to distinguish between usual GRUB and Super UEFIinSecureBoot Disk GRUB inside GRUB config file.
1 parent 4c9e9bb commit d5d03a7

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 0f92b99013308067bcbacd9d52ca7f04346854fe Mon Sep 17 00:00:00 2001
2+
From: ValdikSS <iam@valdikss.org.ru>
3+
Date: Tue, 12 Mar 2019 20:41:56 +0300
4+
Subject: [PATCH] Set suisbd=1 environment variable
5+
6+
This is useful in case of GRUB chaining, to distinguish between
7+
usual GRUB and Super UEFIinSecureBoot Disk GRUB inside
8+
GRUB config file.
9+
---
10+
grub-core/kern/main.c | 3 +++
11+
1 file changed, 3 insertions(+)
12+
13+
diff --git a/grub-core/kern/main.c b/grub-core/kern/main.c
14+
index dcf4872..e62d6a6 100644
15+
--- a/grub-core/kern/main.c
16+
+++ b/grub-core/kern/main.c
17+
@@ -295,6 +295,9 @@ grub_main (void)
18+
grub_env_export ("root");
19+
grub_env_export ("prefix");
20+
21+
+ grub_env_set ("suisbd", "1");
22+
+ grub_env_export ("suisbd");
23+
+
24+
/* Reclaim space used for modules. */
25+
reclaim_module_space ();
26+
27+
--
28+
2.20.1
29+

0 commit comments

Comments
 (0)