Just tested, works perfectly fine. Updated the efi/manjaro and didn’t do anything to the fallback, because there is actually no fallback on this ESP (i made another just for manjaro).
[teo@teo-lenovo-v15 ~]$ sudo ls /boot/efi -Rl
[sudo] password for teo:
/boot/efi:
total 1
drwx------ 3 root root 512 24. Jun 2023 EFI
drwx------ 2 root root 512 25. Jun 2023 'System Volume Information'
/boot/efi/EFI:
total 1
drwx------ 2 root root 512 24. Jun 2023 manjaro
/boot/efi/EFI/manjaro:
total 140
-rwx------ 1 root root 143360 23. Dez 16:38 grubx64.efi
'/boot/efi/System Volume Information':
total 0
[teo@teo-lenovo-v15 ~]$ sudo pacman -S grub
[sudo] password for teo:
warning: grub-2.12-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) grub-2.12-3
Total Download Size: 15,08 MiB
Total Installed Size: 47,86 MiB
Net Upgrade Size: 0,00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
grub-2.12-3-x86_64 15,1 MiB 15,3 MiB/s 00:01 [--------------------------------------] 100%
(1/1) checking keys in keyring [--------------------------------------] 100%
(1/1) checking package integrity [--------------------------------------] 100%
(1/1) loading package files [--------------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------------] 100%
(1/1) checking available disk space [--------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/1) reinstalling grub [--------------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Installing Grub to MBR/EFI
Grub will be installed on: EFI
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.6-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-6.6-x86_64.img
Found initrd fallback image: /boot/initramfs-6.6-x86_64-fallback.img
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
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
(3/4) Checking which packages need to be rebuilt
(4/4) Updating the info directory file...
[teo@teo-lenovo-v15 ~]$ sudo ls /boot/efi -Rl
/boot/efi:
total 1
drwx------ 3 root root 512 24. Jun 2023 EFI
drwx------ 2 root root 512 25. Jun 2023 'System Volume Information'
/boot/efi/EFI:
total 1
drwx------ 2 root root 512 24. Jun 2023 manjaro
/boot/efi/EFI/manjaro:
total 140
-rwx------ 1 root root 143360 25. Dez 16:39 grubx64.efi
'/boot/efi/System Volume Information':
total 0
[teo@teo-lenovo-v15 ~]$ sudo ls /boot/efi -Rl
/boot/efi:
total 1
drwx------ 3 root root 512 24. Jun 2023 EFI
drwx------ 2 root root 512 25. Jun 2023 'System Volume Information'
/boot/efi/EFI:
total 1
drwx------ 2 root root 512 24. Jun 2023 manjaro
/boot/efi/EFI/manjaro:
total 140
-rwx------ 1 root root 143360 25. Dez 16:39 grubx64.efi
'/boot/efi/System Volume Information':
total 0
Yes, a typo. However, that’s all the more reason to protect any boot file that previously exists; for example, in the case of rEFInd if it has previously been moved to the fallback location.
The option to move rEFInd to the fallback location is a valid option with an established procedure outlined in the rEFInd ArchWiki. This is most useful when multibooting and wishing to retain rEFInd as the default loader (while keeping Grub/Other loaders in the usual defined locations).
Again, this is a scenario where the optional check previously mentioned is valid.
In this scenario the grub boot file could arguably still be copied to the fallback location, but with a version appendum bootx64-grub-2.16 for example.
(However, that can open the door for further complication. What I usually do is keep an additional zipped copy of the rEFInd boot file in case Grub eventually obliterates it.)
@Teo
Stupid UEFIs: Yes, I’m aware of some very flaky implementations; the early Gigabyte DualBIOS UEFI boards, in particular, come to mind.
Most recent run seems to finish successfully, but spits warnings first.
$ sudo install-grub
find: ‘/EFI/Manjaro’: No such file or directory
cmp: missing operand after '-s'
cmp: Try 'cmp --help' for more information.
cmp: invalid --ignore-initial value '/efi/EFI/Manjaro/grubx64.efi'
cmp: Try 'cmp --help' for more information.
Grub will be installed on: EFI
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-linux-amd-znver3
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-amd-znver3.img
Found initrd fallback image: /boot/initramfs-linux-amd-znver3-fallback.img
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
Adding reboot option.
Adding poweroff option.
done
@cscs I really don’t know, updating to the latest kernel results in the error I posted. Running the grub-install line you provide gives me no errors. Grub is installed properly but it fails to generate a valid config to the new kernel it does not find init.
the issue is that you have it installed to /efi/EFI/Manjaro instead of /boot/efi/EFI/Manjaro. I’m still implementing that. Check the latest script: install-grub ($976) · Snippets · GitLab
Well, yeah, I know, that hasnt changed from my initial report.
I fixed it by adding ~5 characters to the script… you told me to try this one, so I did, that was the result.
Trying the newest iteration from the snippet results in total failure.
$ sudo /usr/bin/install-grub2
find: ‘/EFI/Manjaro’: No such file or directory
cmp: missing operand after '-s'
cmp: Try 'cmp --help' for more information.
cmp: invalid --ignore-initial value '/efi/EFI/Manjaro/grubx64.efi'
cmp: Try 'cmp --help' for more information.
WARNING: Grub is not properly installed, system may not be bootable or other bootloader is used
$ sudo /usr/bin/install-grub3
Checking: /efi
cmp: invalid --ignore-initial value '/efi/EFI/Manjaro/grubx64.efi'
cmp: Try 'cmp --help' for more information.
WARNING: Grub is not properly installed, system may not be bootable or other bootloader is used
@cscs: can you give install-grub 2.12-3.5 a whirl? I also tested it with an empty /efi and non-existing folder. Should work now. Also it checks now if grub got installed and skips if not.