Cannot reinstall-kernels

After a restart my systemd boot seemed to have lost its endeavourOS entries. so i ran the following in arch-chroot:

  • sudo bootctl install
  • sudo reinstall-kernels
    to get “Failed to make directory ‘/efi/6cdba79567df4b25a83b1c5e4f373977/6.9.3-arch1-1’: Not a directory”

i even tried pacman -Syu $(pacman -Qnq) --overwrite "*"
it didnt help.

some help would be appreciated to bring the boot entries back in my systemd boot

Just a thought: is your ESP (Efi System Partition) mounted at /efi inside the chroot?

It should be mounted at /mnt/boot/efi or /mnt/efi inside the chroot if the root partition was mounted at /mnt