View previous topic :: View next topic |
Author |
Message |
dasPaul Apprentice
Joined: 14 Feb 2012 Posts: 243 Location: Dresden
|
Posted: Thu Jan 08, 2015 9:14 am Post subject: No efivarfs filesystem is mounted |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jan 08, 2015 10:34 am Post subject: |
|
|
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 |
|
|
dasPaul Apprentice
Joined: 14 Feb 2012 Posts: 243 Location: Dresden
|
Posted: Thu Jan 08, 2015 12:59 pm Post subject: |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jan 08, 2015 1:33 pm Post subject: |
|
|
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 |
|
|
dasPaul Apprentice
Joined: 14 Feb 2012 Posts: 243 Location: Dresden
|
|
Back to top |
|
|
gemarcano Tux's lil' helper
Joined: 04 Jun 2012 Posts: 100 Location: California
|
Posted: Mon Feb 16, 2015 11:26 pm Post subject: |
|
|
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 |
|
|
|