Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Grub Installation Help (Read 1112 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Grub Installation Help

I am using the latest version of artix s6 lxde iso from: https://eu-mirror.artixlinux.org/weekly-iso/artix-lxde-s6-20210920-x86_64.iso
But calamere installer fails at bootloader installation and complain that running ```grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix --force``` returns error code 1
Trying to manually install grub results in error ```EFI variables are not supported on this system.```, even though I boot through UEFI

Re: Grub Installation Help

Reply #1
https://unix.stackexchange.com/questions/91620/efi-variables-are-not-supported-on-this-system

This was found by web search. Next time, try this: how to ask correctly to get the right answer
Quote
What to do if I have a problem:
First go through wiki.archlinux.org and wiki.artixlinux.org and use the relevant parts (all except the systemd commands on the archlinux wiki) to set up your system really correctly.
Look at the internet to see if anyone has had a similar error (at least 90% of problems have already been solved on the internet before you) - often a question of 5 minutes before solving it here for days and peoples here will look at the internet anyway :-)
Follow the announcements on the main page at artixlinux / archlinux too

Re: Grub Installation Help

Reply #2
This error message seems to tell you that the installer can't update UEFI boot entries in the boot menu via efibootmgr. Try to manually install the grub via
Code: [Select]
grub-install --target=x86_64-efi --efi-directory=/boot/efi
And then upon reboot enter the UEFI setup (by pressing F2 or whatever key is used on your motherboard) and specify the Artix boot menu entry manually (the grub loader should be artix/grubx64.efi on your EFI partition).

 

Re: Grub Installation Help

Reply #3
I tried this, but it still complained about efivars not supported on this system.
So, I booted to the Atrix live image and mounted the installed Atrix Partition. Then I chrooted into it. But, I had to run
Code: [Select]
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
first outside and then inside the chroot. Then I ran
Code: [Select]
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix --force 
and it worked. Thanks for helping! :)