Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oycPU-0000Jn-6g for mharc-grub-devel@gnu.org; Fri, 25 Nov 2022 12:22:44 -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 1oycPP-0000C9-3U for grub-devel@gnu.org; Fri, 25 Nov 2022 12:22:39 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oycPM-0001EG-94 for grub-devel@gnu.org; Fri, 25 Nov 2022 12:22:38 -0500 Received: by mail-wr1-x430.google.com with SMTP id cl5so7728967wrb.9 for ; Fri, 25 Nov 2022 09:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YAVnJl+PHGUl456QLSq+lHNkia1jtGXaiM9h/Pjzu4M=; b=TzCIefs87LnSzFC2O+QdEnyBcz1r0ixE0mh8QbugGoMvtCBtQmx6iZiC3fGnFfLS7Z nzAoUb2cIIBg0SfzQ8oJio7I9ddoLJ+PKcEmAnHwPHzDNXjqLvtAblVgebOczQA4nD2o C0Gm0EmBirjjd2ZPJKPUbIfGFUss05ZLkXXCc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YAVnJl+PHGUl456QLSq+lHNkia1jtGXaiM9h/Pjzu4M=; b=uXSbBjl85P3m5+CHeK7Vn7PMyXiXQQt/ZOBQgw/GEECGAt7rkR5vINfDC0RLRMe7Um LT8f+IWzqIFBg6apkJ2RAUXGNGv4S9V/OcrO7TEl8Vp03u74gjfMIdxMHgDm5y9nIGkw RSF3PYxDq6YCp0f8MO4QudxnHnRfDde4ih1N3wHb48p6opyHhmU1AJ1laJh1IzJDLxum jrOwByBEsKodyepMM1VGSLimBoXWsdDTw3MJyS9zQin9/S444ZRF59QMXJl0L6ToraQU pr1vLtKimL3ell+dB+yFyRfdtwyrdLqm9Su2Ld9xq4gdgt+DG1jM0MosuaeiqNP36Nl0 8Grg== X-Gm-Message-State: ANoB5pkDUieNcG6oz1wg3JEW0KtlurdF3+5S6Ps/jOqTohm/21QPLggl tofca7PlHmkWf7MrKgDJZJoVTHLCfYiBFJUO X-Google-Smtp-Source: AA0mqf6JVu4A2fMIQsI4v2NjnfK/3Oi5xu2TmN7u72oeQ6g9W295cOmuYTa0+yeeu2XX0dyTaNuCwA== X-Received: by 2002:adf:e3d2:0:b0:241:d676:a787 with SMTP id k18-20020adfe3d2000000b00241d676a787mr16423553wrm.694.1669396954001; Fri, 25 Nov 2022 09:22:34 -0800 (PST) Received: from localhost.localdomain (ip-84-203-35-79.broadband.digiweb.ie. [84.203.35.79]) by smtp.gmail.com with ESMTPSA id u13-20020a5d514d000000b002365b759b65sm4166324wrt.86.2022.11.25.09.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 09:22:33 -0800 (PST) From: Pete Batard To: grub-devel@gnu.org Cc: Pete Batard Subject: [PATCH v2 1/3] grub-mkrescue: Add support for FAT and NTFS on EFI boot Date: Fri, 25 Nov 2022 17:22:15 +0000 Message-Id: <20221125172217.936-2-pete@akeo.ie> X-Mailer: git-send-email 2.36.0.windows.1 In-Reply-To: <20221125172217.936-1-pete@akeo.ie> References: <20221125172217.936-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=pete@akeo.ie; helo=mail-wr1-x430.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 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, 25 Nov 2022 17:22:39 -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, but 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