Translations:Handbook:AMD64/Blocks/Bootloader/75/en
From Gentoo Wiki
If grub-install returns an error that says "Could not prepare Boot variable: Read-only file system", and the live environment was correctly booted in UEFI mode, then it should be possible to remount the efivars special mount as read-write and then re-run the aforementioned grub-install command: