[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/7] util/grub.d: activate bli module on EFI
From: |
Oliver Steffen |
Subject: |
[PATCH v2 4/7] util/grub.d: activate bli module on EFI |
Date: |
Mon, 20 Feb 2023 19:56:27 +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..8285d7627
--- /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 boot-loader-interface
+ boot-loader-interface
+fi
+EOF
--
2.39.2
- [PATCH v2 0/7] Add basic Boot Loader Interface support, Oliver Steffen, 2023/02/20
- [PATCH v2 3/7] Add a module for the Boot Loader Interface, Oliver Steffen, 2023/02/20
- [PATCH v2 1/7] efi: add grub_efi_set_variable_with_attributes, Oliver Steffen, 2023/02/20
- [PATCH v2 4/7] util/grub.d: activate bli module on EFI,
Oliver Steffen <=
- [PATCH v2 2/7] efi: check for integer overflow in string conversion, Oliver Steffen, 2023/02/20
- [PATCH v2 7/7] commands/bli: use grub_gpt_part_guid_snprint, Oliver Steffen, 2023/02/20
- [PATCH v2 6/7] commands/probe: use grub_gpt_part_guid_snprint, Oliver Steffen, 2023/02/20
- [PATCH v2 5/7] partmap/gpt: add print function for guids, Oliver Steffen, 2023/02/20