Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No efivarfs filesystem is mounted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 243
Location: Dresden

PostPosted: Thu Jan 08, 2015 9:14 am    Post subject: No efivarfs filesystem is mounted Reply with quote

Hi there
I want to read my efivars with the tool efi-readvar found in efitools (1.4.2-r1).
Basicaly I want to generate my own secure boot keys as described here.

When I run "efi-readvar" I get the error:
Quote:
No efivarfs filesystem is mounted

but:
I can read the vars by "cat /sys/firmware/efi/efivars/db-.....".
and:
Quote:

#lsmod
Module Size Used by
efivarfs 5294 0

#cat /etc/fstab
efivarfs /sys/firmware/efi/efivars efivarfs rw,relatime 0 0

#mount
...
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,relatime)
...

I also did symlink /proc/self/mounts to /etc/mtab with no difference.
Is there any reason why not to use "cat" to read/write the keys directly to /sys/firmware/efi/efivars/ ?

any ideas?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


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

PostPosted: Thu Jan 08, 2015 10:34 am    Post subject: Reply with quote

dasPaul ... I believe those tools will default to using /sys/firmware/efi/vars (CONFIG_EFI_VARS=y), and not efivarfs (CONFIG_EFIVAR_FS=y) ... I seem to remember this is the case with efibootmgr, so I'm speculating that this is the case with efitools.

I believe the advice is to disable CONFIG_EFI_VARS if CONFIG_EFIVAR_FS=y as the former can cause issues with the latter. I'm not sure if this is the cause of what you're seeing above (as I don't use efivarfs) but I thought it worth mentioning.

best ... khay
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 243
Location: Dresden

PostPosted: Thu Jan 08, 2015 12:59 pm    Post subject: Reply with quote

thank you khayyam, I worked around the problem by compiling latest source from git without portage.
I think the version is 1.5.1 Now efitools works as expected.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


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

PostPosted: Thu Jan 08, 2015 1:33 pm    Post subject: Reply with quote

dasPaul wrote:
thank you khayyam, I worked around the problem by compiling latest source from git without portage. I think the version is 1.5.1 Now efitools works as expected.

dasPaul ... you're welcome. If that is the case then you should probably report it ... there should probably be a live ebuild pulling from kernel.org git as1.4.2-r1 uses a tarball from elsewhere (which dates back to 2013). If 1.4.2-r1 doesn't work with the current stable kernel(s) (which I assume is what you'd used) then the current ebuild is somewhat pointless.

best ... khay
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 243
Location: Dresden

PostPosted: Thu Jan 08, 2015 1:59 pm    Post subject: Reply with quote

khayyam wrote:
probably report it ...


...done here Bug 511728
Back to top
View user's profile Send private message
gemarcano
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2012
Posts: 100
Location: California

PostPosted: Mon Feb 16, 2015 11:26 pm    Post subject: Reply with quote

I've uploaded an ebuild for efitools-1.5.2 to bug 533572. This version does seem to have the problem fixed, although it has its fair share of other problems (a ton of warnings, and make cannot be run concurrently, thus the ebuild forces it to run with -j1).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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