Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pUBLP-00036Y-B1 for mharc-grub-devel@gnu.org; Mon, 20 Feb 2023 13:56:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUBLF-00034S-CW for grub-devel@gnu.org; Mon, 20 Feb 2023 13:56:50 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUBLC-00079d-CI for grub-devel@gnu.org; Mon, 20 Feb 2023 13:56:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676919405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p1i/8QSUBoRu/sV8QFOi4kuSCFZUWtSKYAPULoWiKZU=; b=B35HHZoaz9uULFexunJwFjKcoL1AWGZ5BJybUiQBdK3LH3ug8yAT7orUFVz24Z+KMqHGHw 7ZQjZaOaibw/ytUy9OnNF7d6ne7EmptudxtJ4n759gAwVks0QsHnnKTveHzKshnkengzgO 47BFBc28w4hTT/lYNH40PVu1z2t58DI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-461-rhdkRU1GNF-4zRwPoOXoIw-1; Mon, 20 Feb 2023 13:56:43 -0500 X-MC-Unique: rhdkRU1GNF-4zRwPoOXoIw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A3D99183B3CA for ; Mon, 20 Feb 2023 18:56:43 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.192.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0FBC92166B26; Mon, 20 Feb 2023 18:56:42 +0000 (UTC) From: Oliver Steffen To: grub-devel@gnu.org Cc: kraxel@redhat.com, Oliver Steffen Subject: [PATCH v2 4/7] util/grub.d: activate bli module on EFI Date: Mon, 20 Feb 2023 19:56:27 +0100 Message-Id: <20230220185630.1404033-5-osteffen@redhat.com> In-Reply-To: <20230220185630.1404033-1-osteffen@redhat.com> References: <20230220185630.1404033-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Received-SPF: pass client-ip=170.10.129.124; envelope-from=osteffen@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2023 18:56:50 -0000 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 --- 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 . + +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