Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1q2Vkb-0003OW-Q2 for mharc-grub-devel@gnu.org; Fri, 26 May 2023 07:36:53 -0400 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 1q2Vka-0003OG-Oq for grub-devel@gnu.org; Fri, 26 May 2023 07:36:52 -0400 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 1q2VkQ-0005M3-EC for grub-devel@gnu.org; Fri, 26 May 2023 07:36:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685101001; 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=pCSdruDgtqK1iE3cf8iXwqdlyv7cqWMrNIZ4bpEncdk=; b=MRxPMv0D/m+5zs7YwZoelkRIFJYn1d08ftODWh2Ot/KE43SziHkezgJBvwt8a4GegPwnas k+zYtsfQELRtfY6Ta2dKWPxUdgadY910IxCpAXd2H3jgR/MVEC5fvDbTNkKPC5ABoW32EW nbGEyqldI/Ko5Haw8S4jvPxSoV25rJo= 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-447-rZnpx9ydMN2dvxL-yfqe0w-1; Fri, 26 May 2023 07:36:38 -0400 X-MC-Unique: rZnpx9ydMN2dvxL-yfqe0w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8F77E1C0ED11; Fri, 26 May 2023 11:36:38 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.193.184]) by smtp.corp.redhat.com (Postfix) with ESMTP id B668340CFD45; Fri, 26 May 2023 11:36:37 +0000 (UTC) From: Oliver Steffen To: grub-devel@gnu.org Cc: Daniel Kiper , Gerd Hoffmann , Oliver Steffen , Daniel Kiper Subject: [PATCH v9 11/11] util/grub.d: Activate bli module on EFI Date: Fri, 26 May 2023 13:35:52 +0200 Message-Id: <20230526113552.555635-12-osteffen@redhat.com> In-Reply-To: <20230526113552.555635-1-osteffen@redhat.com> References: <20230526113552.555635-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: Fri, 26 May 2023 11:36:53 -0000 Add a new configuration drop-in file that loads the bli module and runs the command if booting on the EFI platform. Signed-off-by: Oliver Steffen Reviewed-by: Daniel Kiper --- Makefile.util.def | 6 ++++++ util/grub.d/25_bli.in | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 util/grub.d/25_bli.in diff --git a/Makefile.util.def b/Makefile.util.def index fdbd58c8f..1e9a13d3e 100644 --- a/Makefile.util.def +++ b/Makefile.util.def @@ -511,6 +511,12 @@ script = { condition = COND_HOST_LINUX; }; +script = { + name = '25_bli'; + common = util/grub.d/25_bli.in; + installdir = grubconf; +}; + script = { name = '30_os-prober'; common = util/grub.d/30_os-prober.in; diff --git a/util/grub.d/25_bli.in b/util/grub.d/25_bli.in new file mode 100644 index 000000000..6e4538716 --- /dev/null +++ b/util/grub.d/25_bli.in @@ -0,0 +1,24 @@ +#!/usr/bin/sh +set -e + +# grub-mkconfig helper script. +# Copyright (C) 2023 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 . + +cat << EOF +if [ "\$grub_platform" = "efi" ]; then + insmod bli +fi +EOF -- 2.40.1