Are you sure the files are identical?
Listing the efi loaders using efibootmgr
[tiger efi]# efibootmgr
BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 000A,0001,0003,0008,000B,0002,0004,0000,0007,0006,0005
Boot0000 Lenovo Cloud PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)/Uri(https://download.lenovo.com/pccbbs/cdeploy/efi/boot.efi)
Boot0001* UEFI OS HD(1,GPT,519fa53d-c862-4efb-948b-eee1a5d9c584,0x1000,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0002 UEFI: HTTP IPv4 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)/Uri()0000424f
Boot0003* UEFI: PXE IPv4 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)0000424f
Boot0004 UEFI: HTTP IPv6 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv6([::],0,Static,[::],[::],64)/Uri()0000424f
Boot0005* Generic Usb Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0006* CD/DVD Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0007 Win VDI Boot PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)/Uri(https://download.lenovo.com/pccbbs/cdeploy/vdiboot/efi/vdi.efi)
Boot0008* UEFI: PXE IPv6 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv6([::],0,Static,[::],[::],64)0000424f
Boot000A* Manjaro HD(1,GPT,519fa53d-c862-4efb-948b-eee1a5d9c584,0x1000,0x96000)/\EFI\MANJARO\GRUBX64.EFI
Boot000B* UEFI OS HD(2,GPT,212361e5-1ff9-c90e-c5bb-719baa5ae586,0x3a5c0fd8,0x10000)/\EFI\BOOT\BOOTX64.EFI0000424f
[tiger efi]# tree .
.
├── EFI
│ ├── boot
│ │ └── bootx64.efi
│ ├── Manjaro
│ │ ├── fw
│ │ ├── fwupdx64.efi
│ │ └── grubx64.efi
│ ├── Test
│ │ └── grubx64.efi
│ └── UpdateCapsule
│ └── fwupd-94d6edee-8f19-40a9-be14-d881e2e3d55c.cap
├── loader
│ └── random-seed
└── main.efi
8 directories, 7 files
[tiger efi]# ls -la EFI/Manjaro
total 232
drwx------ 3 root root 4096 24 jun 14:21 .
drwx------ 6 root root 4096 2 aug 16:19 ..
drwx------ 2 root root 4096 1 aug 07:01 fw
-rwx------ 1 root root 67753 21 sep 2024 fwupdx64.efi
-rwx------ 1 root root 155648 3 aug 13:09 grubx64.efi
[tiger efi]# ls -la EFI/boot
total 164
drwx------ 2 root root 4096 7 aug 2024 .
drwx------ 6 root root 4096 2 aug 16:19 ..
-rwx------ 1 root root 157816 11 jul 16:33 bootx64.efi
As you can see the loaders are not binary identical - and booting the UEFI OS entry result in the famous grub shim message.
[tiger efi]# install-grub
[D] GRUB 2 EFI-x64 found
[D] Checking EFI-Directory: /boot/efi
[D] Found EFI Bootloader: /boot/efi/EFI/Manjaro/grubx64.efi
Install command will be: grub-install --no-nvram --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck --force
Do you want to proceed? (yes/no) y
ok, we will proceed
Grub will be installed on: EFI
Installing for x86_64-efi platform.
Installation finished. No error reported.
Update Grub Menu
Do you want to proceed? (yes/no) y
ok, we will proceed
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-linux616
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux616.img
Found linux image: /boot/vmlinuz-6.16-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.16-x86_64.img
Found initrd fallback image: /boot/initramfs-6.16-x86_64-fallback.img
Found linux image: /boot/vmlinuz-6.12-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.12-x86_64.img
Found initrd fallback image: /boot/initramfs-6.12-x86_64-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
[tiger efi]# ls -la EFI/boot
total 164
drwx------ 2 root root 4096 7 aug 2024 .
drwx------ 6 root root 4096 2 aug 16:19 ..
-rwx------ 1 root root 157816 11 jul 16:33 bootx64.efi
[tiger efi]# ls -la EFI/Manjaro
total 232
drwx------ 3 root root 4096 24 jun 14:21 .
drwx------ 6 root root 4096 2 aug 16:19 ..
drwx------ 2 root root 4096 1 aug 07:01 fw
-rwx------ 1 root root 67753 21 sep 2024 fwupdx64.efi
-rwx------ 1 root root 155648 15 aug 13:51 grubx64.efi
The original intention with the install-grub
script - for what I know - was to ensure the two loaders is kept in sync - but it is clear from this test run - that does not happen in this run.
I am going to investigate this - but I think it is failing because one of the checks is not case insensitive - and while FAT32 is indeed case insensitive file system - it will become case sensitive when mounted by a Linux kernel - possibly caused by inheritance.
I found the reason why the fallback was not updated.
With this fix - install-grub
correctly updates the fallback entry to match the Manjaro entry and it is then possible to boot the UEFI OS entry too
[tiger efi]# efibootmgr -b 000B -B
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 000A,0001,0003,0008,0002,0004,0000,0007,0006,0005
Boot0000 Lenovo Cloud PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)/Uri(https://download.lenovo.com/pccbbs/cdeploy/efi/boot.efi)
Boot0001* UEFI OS HD(1,GPT,519fa53d-c862-4efb-948b-eee1a5d9c584,0x1000,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0002 UEFI: HTTP IPv4 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)/Uri()0000424f
Boot0003* UEFI: PXE IPv4 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)0000424f
Boot0004 UEFI: HTTP IPv6 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv6([::],0,Static,[::],[::],64)/Uri()0000424f
Boot0005* Generic Usb Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0006* CD/DVD Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0007 Win VDI Boot PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)/Uri(https://download.lenovo.com/pccbbs/cdeploy/vdiboot/efi/vdi.efi)
Boot0008* UEFI: PXE IPv6 Marvell AQtion 10Gbit Network Adapter PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(047bcba9a1ee,0)/IPv6([::],0,Static,[::],[::],64)0000424f
Boot000A* Manjaro HD(1,GPT,519fa53d-c862-4efb-948b-eee1a5d9c584,0x1000,0x96000)/\EFI\MANJARO\GRUBX64.EFI
[tiger efi]# ls -la EFI/boot
total 160
drwx------ 2 root root 4096 7 aug 2024 .
drwx------ 5 root root 4096 15 aug 14:12 ..
-rwx------ 1 root root 155648 15 aug 14:19 bootx64.efi
[tiger efi]# ls -la EFI/Manjaro
total 232
drwx------ 3 root root 4096 24 jun 14:21 .
drwx------ 5 root root 4096 15 aug 14:12 ..
drwx------ 2 root root 4096 1 aug 07:01 fw
-rwx------ 1 root root 67753 21 sep 2024 fwupdx64.efi
-rwx------ 1 root root 155648 15 aug 14:18 grubx64.efi