From: Thomas Schmitt via Grub-devel <grub-devel@gnu.org>
To: grub-devel@gnu.org
Cc: Thomas Schmitt <scdbackup@gmx.net>,
safinaskar@zohomail.com, pete@akeo.ie, adrian15sgd@gmail.com,
adrian.gibanel@btactic.com
Subject: Re: [PATCH] Change "efi" to "EFI" in grub-mkrescue for secure boot
Date: Fri, 06 Sep 2024 20:09:50 +0200 [thread overview]
Message-ID: <16015310275666828457@scdbackup.webframe.org> (raw)
In-Reply-To: <20240906132914.27842-1-safinaskar@zohomail.com>
Hi,
Askar Safin <safinaskar@zohomail.com> wrote:
> I CC Thomas Schmitt, because my work seems to be related to xorriso.
I checked that grub-mkrescue variables efidir_efi and efidir_efi_boot
are not leading to arguments of the xorriso run.
Insofar this change is transparent from the view of xorriso.
I can confirm that many distro ISOs have a copy of the file tree of their
EFI system partition as file tree "/EFI/boot" in the ISO 9660 filesystem.
Nobody seems to complain about the mixed case.
This copy normally plays no role in booting but is present for reference
and for copying out by e.g. Rufus. This is convenient because else one
has to search and mount the EFI system partition.
(I cannot judge whether "grub-mkimage -p /EFI/debian" has any relation
to the names in the ISO 9660 filesystem or whether the filesystem where
it matters is case sensitive.)
> iso9660 file system is case sensitive from GRUB point of view.
That's probably because grub-core/fs/iso9660.c has support for Rock Ridge.
One would have to use xorrisofs option --norock to keep xorriso from
producing Rock Ridge. Omitting -R, -rock, -r, or -rational-rock would
not suffice, other than with mkisofs and genisoimage.
> Signed-off-by: Askar Safin <safinaskar@zohomail.com>
> ---
> util/grub-mkrescue.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
> index 6dc71a8a1..c78647ebe 100644
> --- a/util/grub-mkrescue.c
> +++ b/util/grub-mkrescue.c
> @@ -771,8 +771,12 @@ main (int argc, char *argv[])
> || source_dirs[GRUB_INSTALL_PLATFORM_RISCV64_EFI])
> {
> FILE *f;
> - char *efidir_efi = grub_util_path_concat (2, iso9660_dir, "efi");
> - char *efidir_efi_boot = grub_util_path_concat (3, iso9660_dir, "efi",
> "boot");
> +
> + /* This directory should be named "EFI", not "efi". See September
> 2024 grub-devel discussion for details
> + ( https://lists.gnu.org/archive/html/grub-devel/2024-09/index.html
> )
> + */
> + char *efidir_efi = grub_util_path_concat (2, iso9660_dir, "EFI");
> + char *efidir_efi_boot = grub_util_path_concat (3, iso9660_dir, "EFI",
> "boot");
> char *imgname, *img32, *img64, *img_mac = NULL;
> char *efiimgfat, *iso_uuid_file, *diskdir, *diskdir_uuid;
> grub_install_mkdir_p (efidir_efi_boot);
>
Reviewed-by: Thomas Schmitt <scdbackup@gmx.net>
Have a nice day :)
Thomas
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2024-09-06 18:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 13:15 [PATCH] Change "efi" to "EFI" in grub-mkrescue for secure boot Askar Safin via Grub-devel
2024-09-06 18:09 ` Thomas Schmitt via Grub-devel [this message]
2024-09-06 21:50 ` Pascal Hambourg
2024-09-07 7:51 ` Vladimir 'phcoder' Serbinenko
2024-09-07 8:30 ` Thomas Schmitt via Grub-devel
2024-09-08 16:12 ` Pascal Hambourg
2024-09-07 7:53 ` Vladimir 'phcoder' Serbinenko
2024-09-07 10:35 ` Askar Safin via Grub-devel
2024-09-27 16:10 ` Askar Safin via Grub-devel
2024-09-27 17:42 ` Askar Safin via Grub-devel
2024-09-11 10:09 ` adrian15sgd
2024-09-11 10:23 ` adrian15sgd
2024-09-11 10:38 ` Tobias Powalowski via Grub-devel
2024-09-11 15:13 ` adrian15sgd
2024-09-11 15:46 ` Tobias Powalowski via Grub-devel
2024-09-14 11:04 ` Askar Safin via Grub-devel
2024-09-14 13:56 ` adrian15sgd
2024-09-26 20:46 ` Askar Safin via Grub-devel
2024-09-14 10:47 ` Askar Safin via Grub-devel
2024-09-14 13:49 ` adrian15sgd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16015310275666828457@scdbackup.webframe.org \
--to=grub-devel@gnu.org \
--cc=adrian.gibanel@btactic.com \
--cc=adrian15sgd@gmail.com \
--cc=pete@akeo.ie \
--cc=safinaskar@zohomail.com \
--cc=scdbackup@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.