Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pXnYr-000650-BV for mharc-grub-devel@gnu.org; Thu, 02 Mar 2023 13:21:49 -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 1pXnYo-00062e-Fx for grub-devel@gnu.org; Thu, 02 Mar 2023 13:21:46 -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 1pXnYm-00049H-T2 for grub-devel@gnu.org; Thu, 02 Mar 2023 13:21:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677781304; 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=XEkarC1RrgqgT7Doi/Lcb9I0FFDJJ0uTvrI4SogCGos=; b=UYohy487aMe2AVsD9FPDuhLieZTU2ud5o9dJDrf2PocFuwWhzgz2Uimz1ewZahZ7Fb4Ytl we8enDFZr1ZaRgk6Qwon38jhDXRId6aSr3AEXDNvKhHyq9YRoZ1jd6K/8YdHf4rPY5/bw6 jzYSA5tTt7zBSDAzZHz1WGGsxt2su7I= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-121-MFEkhGn-NOKBvCC7lQE1Cg-1; Thu, 02 Mar 2023 13:21:43 -0500 X-MC-Unique: MFEkhGn-NOKBvCC7lQE1Cg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 09EB61C08974; Thu, 2 Mar 2023 18:21:42 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.192.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 13FE7492C3E; Thu, 2 Mar 2023 18:21:40 +0000 (UTC) From: Oliver Steffen To: grub-devel@gnu.org Cc: Daniel Kiper , Gerd Hoffmann , Javier Martinez Canillas , Oliver Steffen Subject: [PATCH v3 10/10] util/grub.d: Activate bli module on EFI Date: Thu, 2 Mar 2023 19:20:45 +0100 Message-Id: <20230302182045.810724-11-osteffen@redhat.com> In-Reply-To: <20230302182045.810724-1-osteffen@redhat.com> References: <20230302182045.810724-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 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: Thu, 02 Mar 2023 18:21:46 -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..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 . + +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