All of lore.kernel.org
 help / color / mirror / Atom feed
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, pascal@plouf.fr.eu.org
Subject: Re: [PATCH] Change "efi" to "EFI" in grub-mkrescue for secure boot
Date: Sat, 07 Sep 2024 10:30:45 +0200	[thread overview]
Message-ID: <29963309928969934189@scdbackup.webframe.org> (raw)
In-Reply-To: <85fba0d5-de51-4736-9252-13576664cbc2@plouf.fr.eu.org>

Hi,

Pascal Hambourg wrote:
> When
> booting from a EFI partition on a regular disk, then $root is set to the
> EFI partition (hdX,Y). When booting from a EFI El Torito image on a CD,
> then $root is set to the whole CD (cdX), and the El Torito image is not
> visible.

That's a surprise to me.

I wrote (before knowing this information):
> > 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.
> > This copy normally plays no role in booting

Pascal Hambourg wrote:
> It plays a role in Debian ISOhybrid images when booting from CD with a
> monolithic signed GRUB image which fetches an early grub.cfg in the EFI
> partition, because GRUB does not see the El Torito image and can read
> the early grub.cfg only from the ISO 9660 filesystem.

I was disbelieving enough to make a DVD+RW from
debian-12.7.0-amd64-netinst.iso with /EFI/debian/grub.cfg removed from
the ISO filesystem:

  xorriso -indev debian-12.7.0-amd64-netinst.iso \
          -outdev /dev/sr3 \
          -blank as_needed \
          -rm /EFI/debian/grub.cfg -- \
          -boot_image any replay \
          -assess_indev_features replay

Indeed when booting this DVD on real iron, i end up at a "grub>" prompt.
The original debian-12.7.0-amd64-netinst.iso put later on the same DVD
boots to the installer menu.

There remains my curiosity why this difference between booting via
El Torito and via partition table from the same FAT filesystem exists
and whether this is a bug.
(Well, by tradition it probably is a feature now.)


Have a nice day :)

Thomas


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  parent reply	other threads:[~2024-09-07  8:32 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
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 [this message]
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=29963309928969934189@scdbackup.webframe.org \
    --to=grub-devel@gnu.org \
    --cc=adrian.gibanel@btactic.com \
    --cc=adrian15sgd@gmail.com \
    --cc=pascal@plouf.fr.eu.org \
    --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.