The handbook suggests to mount the boot and root partitions before entering the chroot environment. Nevertheless, as the gentoo wiki suggests (https://wiki.gentoo.org/wiki/GRUB2/Troubleshooting#Installing_GRUB2_from_within_a_chroot) the boot partition should be mounted AFTER entering in the chroot environment. Reproducible: Always Steps to Reproduce: 1. Installing gentoo from a chroot environment following the handbook. 2. 3. Actual Results: # grub2-install /dev/sda Installing for i386-pc platform. grub2-install: error: failed to get canonical path of «/boot/grub». Expected Results: # grub2-install /dev/sda Installing for i386-pc platform. Ha acabat la instal·lació. No s'ha reportat cap error. (no errors message)
Closed as of these edits: https://wiki.gentoo.org/index.php?title=Handbook%3AParts%2FInstallation%2FBase&type=revision&diff=608798&oldid=608792 Thank you so much for the constructive feedback! See the updated section for AMD64 and X86 (respectively) here: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Mounting_the_boot_partition https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Base#Mounting_the_boot_partition
Thanks! :D :)