On 23/10/2024 at 15:18, Marcin Juszkiewicz wrote:
W dniu 23.10.2024 o 14:38, Pascal Hambourg pisze:
On 23/10/2024 at 11:46, Marcin Juszkiewicz wrote:
For that first 16MB partition it would be nice to use GPT type
EF02 (BIOS boot partition) so partitioning tools will see that it
is partition for bootloaders.
(...)
AFAIK the "BIOS boot" type is used only by GRUB for BIOS on x86. Does
U-Boot or any other arm64 boot loader use this type ?
It is type which shows the purpose of partition. Probably none of OS
loaders (like grub etc) use it on arm64. In Fedora we have one big EFI
binary for Grub, Debian uses modular approach with modules kept in the
/boot/grub/ dir.
Debian also has signed monolithic GRUB images for UEFI secure boot.
I know this is very specific, but using the "BIOS boot" type for
the 16MiB reserved partition would get in the way of a multi-boot
x86+arm64 installation because GRUB for BIOS is written at the
beginning (30-100 kB) of the BIOS boot partition. Is this a
realistic use case ?
I would love to meet someone who uses storage that way. Using one disk
for 10+ years old PC (BIOS/CSM) and modern AArch64 system. It is
theoretically possible but in practice it is cheaper to buy some disk.
Except if you want all systems to share common data on the same portable
medium. I do not know if the notion of a portable installation makes
sense in the arm64 world. But I doubt that anyone would use automatic
partitioning to create such setup.
To be honest, I considered using the "BIOS boot" type when I added the
16MB reserved partition to arm64 recipes. It has the additional
advantage of allowing automatic partitioning in free space to reuse an
existing partition of the same type instead of uselessly creating a new
one, for multi-boot. But again I do not know if multi-boot is a common
use case or even possible on arm64.
The decision is up to d-i maintainers.