Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
modprobe efivarfs on minimal cd: ERROR : No such device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Wed Nov 11, 2015 4:41 pm    Post subject: modprobe efivarfs on minimal cd: ERROR : No such device Reply with quote

Hello,

I have booted from the minmal cd and tried to do

Code:
grub2-install --target=x86_64-efi --efi-directory=/boot
according to https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Configuring_GRUB2

returning

Code:

Installing for x86_64-efi platform.
efibootmgr: EFI variables are not supported on this system.
efibootmgr: EFI variables are not supported on this system.
Installation finished. No error reported.


like on http://unix.stackexchange.com/questions/91620/arch-linux-grub-install-efi-variables-are-not-supported-on-this-system .

But I can't load the efivars module, either:

Code:
modprobe efivars
modprobe: ERROR: could not insert 'efivars': No such device


Code:
modprobe efivarfs
modprobe: ERROR: could not insert 'efivarfs': No such device


Here is a similar problem:
https://wiki.gentoo.org/wiki/Talk:UEFI_Gentoo_Quick_Install_Guide


Is there another name for the evivarfs module on the minimal cd or how am I supposed to go on?

After doing
Code:
grub2-mkconfig -o /boot/grub/grub.cfg
the kernel is recognized.

However, it seems grub2 was not setup successfully, because after a reboot the typical "INSERT A CD or..." message is shown. The boot order is the disc with grub2 first.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Nov 11, 2015 7:06 pm    Post subject: Reply with quote

kaTiezei ... the minimal CD's don't support EFI, you will need to use another boot cd (ie, sysresccd) in order to access efivars, run 'efibootmgr' (which is what grub2-setup is attempting to do above), etc. You could however place an efi executable in the default location ... {ESP}/efi/boot/bootia64.efi ... and your efi firmware should select and execute it (if you're firmware follows the EFI specification, that is).

best ... khay
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Fri Nov 13, 2015 9:37 am    Post subject: Reply with quote

Hello,

and thank you to everyone for looking at my problem. I wonder why the efivars module is not on the minimal disc. Isn't installing a bootmanager minimal enough?

I booted the SystemRescueCD, and got

Code:
efibootmgr
efibootmgr: EFI variables are not supported on this system.
modprobe -v efivars
modprobe -v efivarfs
efibootmgr
efibootmgr: EFI variables are not supported on this system.
lsmod | grep efi


That means, trying to load the efivars module causes no error, however, it does not seem to be loaded.
Why doesn't it support it? I can boot in my efi every time I boot.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Nov 13, 2015 12:56 pm    Post subject: Reply with quote

kaTiezei wrote:
[...] and thank you to everyone for looking at my problem. I wonder why the efivars module is not on the minimal disc. Isn't installing a bootmanager minimal enough?

kaTiezei ... you're welcome, and good question, it's probably due to the fact that booting both both mbr and efi on the same boot medium requires an efi bootloader (that would mean grub2). The method of doing this on the sysresccd is that there is a small img, with a minimal grub2, that is passed as the ESP, this then loads the grub2.efi in the root of the CD ... some kind of trickery is involved that should the machine be mbr then syslinux is used, or if booting in efi mode the ESP will be detected and the grub2.efi executed. So, its probably the level of complexity involved, and so maintainance, testing, etc.

kaTiezei wrote:
Code:
efibootmgr: EFI variables are not supported on this system.

That means, trying to load the efivars module causes no error, however, it does not seem to be loaded. Why doesn't it support it? I can boot in my efi every time I boot.

There is EFI_VARS, and EFIVAR_FS ... the latter is new(er) and its only fairly recently supported by efibootmgr ... the stable version in the tree, 0.5.4-r1, doesn't support efivarfs and there are known issues (which is why I assume its still keyworded ~arch). However, afaik, efivarfs isn't required for 0.6.0, and from the looks of things the above is just a warning. Did you run 'efibootmgr -v' and see if NVRAM had the boot entry?

best ... khay
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Sat Nov 14, 2015 10:31 am    Post subject: Reply with quote

Thank you for your information, khayyam.

efibootmgr -v yields
Code:
efibootmgr: EFI variables are not supported on this system.
and nothing else.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Nov 14, 2015 12:19 pm    Post subject: Reply with quote

kaTiezei wrote:
efibootmgr -v yields
Code:
efibootmgr: EFI variables are not supported on this system.

and nothing else.

kaTiezei ... ok, so a couple of questions, are you running efibootmgr in the chroot, and if so is it the 0.5.4-r1 package? Also, is /sys bind mounted within the chroot?

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum