Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1puCtA-0000ir-Mk for mharc-grub-devel@gnu.org; Wed, 03 May 2023 09:51:24 -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 1puCt9-0000hW-1j for grub-devel@gnu.org; Wed, 03 May 2023 09:51:23 -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 1puCt7-0007i7-Bj for grub-devel@gnu.org; Wed, 03 May 2023 09:51:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683121880; 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=Nz5enrGH940S+7WpPrMIYNnp91lI44MMdadp4u0DbgI=; b=GMM4Swi1b2DrAtHEX3eNrqVXFMlgCIY1jC9UW/SRJk7tUjscr3Y2UhG2JFyea0k5lFnOHq x4mHk2ibynnXl1sU2VLlbcTKGHC/DoreSSzXIjn3H86nn3KYnvgutyoePTOyKMISyfqtR6 BLtMX/BObdhYYW8uX8Wg4rcBR5RJUTg= 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-255-Sf0htVDWPsGuBsV9Hx7lNw-1; Wed, 03 May 2023 09:51:19 -0400 X-MC-Unique: Sf0htVDWPsGuBsV9Hx7lNw-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 5C314103538D; Wed, 3 May 2023 13:51:19 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.193.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C6162166B29; Wed, 3 May 2023 13:51:18 +0000 (UTC) From: Oliver Steffen To: grub-devel@gnu.org Cc: Daniel Kiper , Gerd Hoffmann , Oliver Steffen Subject: [PATCH v7 10/10] util/grub.d: Activate bli module on EFI Date: Wed, 3 May 2023 15:50:19 +0200 Message-Id: <20230503135019.101181-11-osteffen@redhat.com> In-Reply-To: <20230503135019.101181-1-osteffen@redhat.com> References: <20230503135019.101181-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: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.161, 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, 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: Wed, 03 May 2023 13:51:23 -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 --- 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 beaef1168..d90e59b94 100644 --- a/Makefile.util.def +++ b/Makefile.util.def @@ -510,6 +510,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