grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] util/grub-mkrescue: use capitalised paths for removable EFI


From: Thomas Schmitt
Subject: Re: [PATCH] util/grub-mkrescue: use capitalised paths for removable EFI images
Date: Tue, 11 Jun 2024 20:35:20 +0200

Hi,

Mingcong Bai wrote:
> While FAT < 32 filesystems are not case sensitive (which grub-mkrescue
> creates
> as a FAT12 image via mformat with a size of 2.88MiB), it seems that
> some of Loongson's LoongArch-based firmware (namely those found on their
> latest XA61200 boards) seems to treat this file system as
> case-sensitive.
> [...]
>         if (source_dirs[GRUB_INSTALL_PLATFORM_I386_EFI]
>           || source_dirs[GRUB_INSTALL_PLATFORM_X86_64_EFI])
> -       img_mac = grub_util_path_concat (2, core_services, "boot.efi");
> +       img_mac = grub_util_path_concat (2, core_services, "BOOT.EFI");
>
>         if (source_dirs[GRUB_INSTALL_PLATFORM_I386_EFI]
>           && source_dirs[GRUB_INSTALL_PLATFORM_X86_64_EFI])

I think that this name does not end up in a FAT filesystem but rather
in HFS+, where it gets blessed. (It also ends up in ISO 9660.)

707:       core_services = grub_util_path_concat (4, iso9660_dir, "System", 
"Library", "CoreServices");

753:              xorriso_push ("-hfs-bless-by");
754:              xorriso_push ("i");
755:              xorriso_push ("/System/Library/CoreServices/boot.efi");

This xorrisofs option would not reach a file in the EFI boot image.


Have a nice day :)

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]