Cannot reinstall-kernels

Hey!
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

I have dualboot and in my case after kernel update I could only boot Windows 11 via systemd-boot. Also I had the same problem with reinstall-kernels. It helped chkdsk on this particular partition according to the instructions from the Super User:

On Windows, I used DISKPART to assign the EFI System partition a letter. Fired up DISKPART, and typed LIST DISK to find the disk, followed by SELECT DISK <N> (where is the drive number). Followed the same steps to find the proper partition (i.e. LIST PARTITION followed by SELECT PARTITION <N>), and then simply typed ASSIGN LETTER = X to have Windows mount the partition to letter X.

Then opened CMD with administrative access. Ran CHKDSK X: /f /r

There was a similar problem here: Systemd-boot - Linux/endeavouros boot option suddenly disappeared, only Windows 10 option remains