Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nyFwZ-0003b5-AR for mharc-grub-devel@gnu.org; Mon, 06 Jun 2022 12:51:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyFwT-0003Wo-TC for grub-devel@gnu.org; Mon, 06 Jun 2022 12:51:01 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:34539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyFwR-0006fh-HP for grub-devel@gnu.org; Mon, 06 Jun 2022 12:51:00 -0400 Received: by mail-wr1-x433.google.com with SMTP id q26so10270059wra.1 for ; Mon, 06 Jun 2022 09:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6yicGbJH//NVz2LgpUxm1wYO/2MaKzj1JQ+7KuxTNXk=; b=akKaiVmvpH+KLFhINVtr+pgURLVsbXluV7mpYNcVqcLAEgH+DarbqfsiI/s8qew14Q N0ovDFVIhyeu1Yo/pYjw2LX9jK6P57260gfEpO0javm0LQj0OEX+hBIonCgPq4sq898K KSu/wcflMg+AezwTw3JEWdDA37UO27zdIvgFI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6yicGbJH//NVz2LgpUxm1wYO/2MaKzj1JQ+7KuxTNXk=; b=GrFuc94igRxTUAsRSpLIXzWA/u3UNDy1FYiaejZ/cFJ82lsL/ON0+6lEQ98z+hgggG eaKGump7qTgVYDXFyl0a3CuSAh8UFoGZ8ffIf1WaO4cwTOBg5iTyo+Mb9JCFn5hcR10n elHVdPYjo0amd9QTgpJ9VqcVnVf8VsBU0LiKdOoct1eYN6hSFDgnMW2EkiMGgmtK7oUo nmKEbgPIuRPwVFTsT62gxVsvsRd9aJS6KW0wS5cVso9ecWdq5tg5q8jgvCyfOXSQiPRs +g39D5k1MWOUI47zxn1/h8E5uB7DmCm14N38sqCNmEINL+S5Y0sWRrxXxdOear97Oh/8 Za/A== X-Gm-Message-State: AOAM533XGtBuSRLnYP6uaBviDosd7jvBP+mmF4n8GexBCYcDmIPJ6wgQ qaY2TowXSmJoCMciVkeOYM6kV4YEAICOOA== X-Google-Smtp-Source: ABdhPJzsdHrcspri6kzLsayZq3tRdICXe0AmM502aeU1zRArSaXpEYd1fvovnXGnvjSiLaeeGdoaWQ== X-Received: by 2002:a5d:64c2:0:b0:20f:dc21:e658 with SMTP id f2-20020a5d64c2000000b0020fdc21e658mr23196855wri.508.1654534250400; Mon, 06 Jun 2022 09:50:50 -0700 (PDT) Received: from localhost.localdomain (ip-84-203-46-176.broadband.digiweb.ie. [84.203.46.176]) by smtp.gmail.com with ESMTPSA id i19-20020a1c5413000000b0039c457cea21sm8066068wmb.34.2022.06.06.09.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:50:49 -0700 (PDT) From: Pete Batard To: grub-devel@gnu.org Cc: scdbackup@gmx.net, Pete Batard Subject: [PATCH 1/3] grub-mkrescue: Add support for FAT and NTFS on EFI boot Date: Mon, 6 Jun 2022 17:50:31 +0100 Message-Id: <20220606165034.811-2-pete@akeo.ie> X-Mailer: git-send-email 2.36.0.windows.1 In-Reply-To: <20220606165034.811-1-pete@akeo.ie> References: <20220606165034.811-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=pete@akeo.ie; helo=mail-wr1-x433.google.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, 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: Mon, 06 Jun 2022 16:51:02 -0000 In order to add file system transposition support for UEFI, i.e. the ability to copy the content of an ISO9660 grub-mkrescue ISO image onto user-formatted media, and have that boot on UEFI systems, the first thing we need to do is add support for the file systems that are natively handled by UEFI. This mandatorily includes FAT and we also include NTFS as the latter is also commonly supported on modern x64 platforms. Signed-off-by: Pete Batard --- util/grub-mkrescue.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c index ba89b1394..1257476fb 100644 --- a/util/grub-mkrescue.c +++ b/util/grub-mkrescue.c @@ -754,6 +754,9 @@ main (int argc, char *argv[]) grub_install_push_module ("part_gpt"); grub_install_push_module ("part_msdos"); + grub_install_push_module ("fat"); + /* Many modern UEFI systems also have native support for NTFS */ + grub_install_push_module ("ntfs"); imgname = grub_util_path_concat (2, efidir_efi_boot, "bootia64.efi"); make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_IA64_EFI, "ia64-efi", imgname); @@ -831,6 +834,8 @@ main (int argc, char *argv[]) free (efidir); grub_install_pop_module (); grub_install_pop_module (); + grub_install_pop_module (); + grub_install_pop_module (); } grub_install_push_module ("part_apple"); -- 2.36.0.windows.1