I dived into update-grub which launches grub-mkconfig which calls grub-probe, which is giving this error
I had a 2 disk BTRFS raid1 on my root partition when the boot disk (with the EFI and grub) failed. I am on Ubuntu Jammy 22.04
On rebooting the other disk wouldn't boot obviously because it didn't have the EFI partition and bootloader installed.
Partition Table of the Disk:
Number Start (sector) End (sector) Size Code Name
1 2048 499711 243.0 MiB EF00 EFI system partition
2 499712 117229567 55.7 GiB 8300 Linux filesystem
3 117229568 500118158 182.6 GiB 8300 Linux filesystem
Booted using an Ubuntu 24.04 Live USB and mounted the partition degraded. Then ran
grub-install --efi-directory=/boot/efi /dev/sda
grub-install: error: failed to get canonical path of `'`
Have extensively searched all online forums and well ChatGPT :) but the canonical path its looking for looks weird