When running grub-install (while chrooted into your target OS) you need to set your efi directory to the file system mount point of the ESP (usually /boot).
It's included in the instructions for grub installation on the Arch wiki, though it's easy to skip over if you're not looking carefully.
"First, tell GRUB to use UEFI, set the boot directory and set the bootloader ID. Mount the ESP partition to e.g. /boot or /boot/efi and in the following change esp_mount to that mount point (usually /boot)"
Edit: said "installing grub", changed it to "running grub-install"
I've been using using arch-chroot since the guide ask me to (after running pacstrap), and didn't get out of it. After reading your comment, I tried arch-chroot again, and it prints "command not found"
10 comments
When running grub-install (while chrooted into your target OS) you need to set your efi directory to the file system mount point of the ESP (usually /boot).
It's included in the instructions for grub installation on the Arch wiki, though it's easy to skip over if you're not looking carefully.
"First, tell GRUB to use UEFI, set the boot directory and set the bootloader ID. Mount the ESP partition to e.g. /boot or /boot/efi and in the following change esp_mount to that mount point (usually /boot)"
Edit: said "installing grub", changed it to "running grub-install"
My partition info:
So my understanding is:
But it didn't work. Am I understand things wrong?
/mnt/boot is the mount point from outside your file system. While chrooted it's /boot
Use systemd boot if you have UEFI.
Bootloader should be installed from inside chrooted environment.
As it exposed by bash prompt, you tried to do it from iso-based environment. It's obviously shouldn't work.
Installation guide implies that after
arch-chrootyou will continue installation process in chrooted environment.I've been using using arch-chroot since the guide ask me to (after running pacstrap), and didn't get out of it. After reading your comment, I tried arch-chroot again, and it prints "command not found"
Have you installed grub and efi boot manager inside chroot?
My partition info (if it's necessary):
I know it's Arch - but here you go with the best wiki: https://wiki.gentoo.org/wiki/GRUB2#UEFI_with_GPT