grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 2/3] bli: Add explicit dependency on the part_gpt module


From: Oliver Steffen
Subject: [PATCH v2 2/3] bli: Add explicit dependency on the part_gpt module
Date: Wed, 15 Nov 2023 21:08:01 +0100

The bli module has a "hidden" dependency on the part_gpt module, which
is not picked up automatically by the build system. One purpose of the
bli module is to communicate the GPT UUID of the partition Grub was
launched from to Linux user-space (systemd-gpt-auto-generator).
Without the part_gpt module, bli is not able to obtain the UUID. Since
bli does its work in the module initialization function, the order in
which the modules are loaded is also important: part_gpt needs to be
loaded before the bli module.

To solve this, track this dependency explicitly.

Note that the Boot Loader Interface specification, which bli aims to
implement, requires GPT formatted drives. The bli module ignores all
other partition formats.

Signed-off-by: Oliver Steffen <osteffen@redhat.com>
---
 grub-core/extra_deps.lst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/grub-core/extra_deps.lst b/grub-core/extra_deps.lst
index e69de29bb..f44ad6a0c 100644
--- a/grub-core/extra_deps.lst
+++ b/grub-core/extra_deps.lst
@@ -0,0 +1 @@
+depends bli part_gpt
-- 
2.41.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]