I am still having this issue every time you upgrade install-grub
The solution is to replace the line 121 in the script to
awk -e '/EFI\\x20\(FAT-12\/16\/32\)|EFI\\x20System|BIOS\\x20boot/ {print $2}' | tr -s '\n'); do
Mind the |BIOS\\x20boot
extra piece. Before and after the change I got this:
[alex@alex-b450aoruselite ~]$ sudo install-grub
[sudo] contraseña para alex:
WARNING: EFI directory not found! Grub couldn't be installed.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 11:18:48
[alex@alex-b450aoruselite ~]$ which install-grub
/usr/bin/install-grub
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 11:18:59
[alex@alex-b450aoruselite ~]$ kate /usr/bin/install-grub
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 11:19:09
[alex@alex-b450aoruselite ~]$ sudo install-grub
Grub will be installed on: EFI
Instalando para plataforma x86_64-efi.
Instalación terminada. No se notificó ningún error.
Generando un fichero de configuración de grub...
Encontrado tema: /usr/share/grub/themes/manjaro/theme.txt
Encontrada imagen de linux: /boot/vmlinuz-6.12-x86_64
Encontrada imagen de memoria inicial: /boot/initramfs-6.12-x86_64.img
Found initrd fallback image: /boot/initramfs-6.12-x86_64-fallback.img
Encontrada imagen de linux: /boot/vmlinuz-6.6-x86_64
Encontrada imagen de memoria inicial: /boot/initramfs-6.6-x86_64.img
Found initrd fallback image: /boot/initramfs-6.6-x86_64-fallback.img
Aviso: le sondeur de systèmes d'exploitation sera exécuté pour détecter d'autres partitions amorçables.
Sa sortie sera utilisée pour détecter les binaires amorçables qu'elles contiennent et créer de nouvelles entrées d'amorçage.
Ajout de l'entrée du menu d'amorçage pour les paramètres du firmware UEFI …
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: aviso: tipo de dispositivo nvme0n1 desconocido.
hecho
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 11:20:58