[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 10/10] util/grub.d: Activate bli module on EFI
From: |
Oliver Steffen |
Subject: |
[PATCH v3 10/10] util/grub.d: Activate bli module on EFI |
Date: |
Thu, 2 Mar 2023 19:20:45 +0100 |
Add a new configuration drop-in file that loads the
boot-loader-interface (bli) module and runs the command in case we are
booting on the EFI platform.
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
---
util/grub.d/25_boot_loader_interface.in | 34 +++++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 util/grub.d/25_boot_loader_interface.in
diff --git a/util/grub.d/25_boot_loader_interface.in
b/util/grub.d/25_boot_loader_interface.in
new file mode 100644
index 000000000..50daf3a10
--- /dev/null
+++ b/util/grub.d/25_boot_loader_interface.in
@@ -0,0 +1,34 @@
+#!/usr/bin/sh
+set -e
+
+# grub-mkconfig helper script.
+# Copyright (C) 2020 Free Software Foundation, Inc.
+#
+# GRUB is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GRUB is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
+
+prefix="/usr"
+exec_prefix="/usr"
+datarootdir="/usr/share"
+
+export TEXTDOMAIN=grub
+export TEXTDOMAINDIR="${datarootdir}/locale"
+
+. "$pkgdatadir/grub-mkconfig_lib"
+
+cat << EOF
+if [ "\$grub_platform" = "efi" ]; then
+ insmod bli
+ bli
+fi
+EOF
--
2.39.2
- Re: [PATCH v3 03/10] Unify GUID types, (continued)
- [PATCH v3 07/10] grub-core/kern/efi: Remove redundant null-termination, Oliver Steffen, 2023/03/02
- [PATCH v3 02/10] efi: Check for integer overflow in string conversion, Oliver Steffen, 2023/03/02
- [PATCH v3 05/10] grub-core: Make use of guid printf format specifier, Oliver Steffen, 2023/03/02
- [PATCH v3 06/10] Add a module for the Boot Loader Interface, Oliver Steffen, 2023/03/02
- [PATCH v3 08/10] types.h: Add GRUB_SSIZE_MAX, Oliver Steffen, 2023/03/02
- [PATCH v3 10/10] util/grub.d: Activate bli module on EFI,
Oliver Steffen <=
- [PATCH v3 09/10] commands/bli: Extract uft8 to utf16 conversion, Oliver Steffen, 2023/03/02