Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] efivarfs vs sysfs-efivars
@ 2021-11-17 17:53 dkwo
  2021-11-18 10:45 ` dkwo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dkwo @ 2021-11-17 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

New issue by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/34117

Description:
I was trying to understand better how efi variables works.
I realised our kernel has both the old and new version, which leads to displaying two sets of efi variables:
```
$ ls /sys/firmware/efi/vars/
Display all 141 possibilities? (y or n)
$ ls /sys/firmware/efi/efivars/
Display all 139 possibilities? (y or n)
```
This is due to having both options:
```
CONFIG_EFI_VARS=y
CONFIG_EFIVAR_FS=y
```
According to Arch wiki, the first one should be avoided.
> UEFI Runtime Variables Support (old efivars sysfs interface - /sys/firmware/efi/vars). This option should be disabled to prevent any potential issues with both efivarfs and sysfs-efivars enabled.

Can anyone clarify what the correct thing to do is here, and whether we should set `CONFIG_EFI_VARS=n`?
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: efivarfs vs sysfs-efivars
  2021-11-17 17:53 [ISSUE] efivarfs vs sysfs-efivars dkwo
@ 2021-11-18 10:45 ` dkwo
  2021-11-19 12:48 ` dkwo
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: dkwo @ 2021-11-18 10:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/34117#issuecomment-972748491

Comment:
Also according to https://lkml.org/lkml/2013/4/16/473 , the older option is deprecated.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: efivarfs vs sysfs-efivars
  2021-11-17 17:53 [ISSUE] efivarfs vs sysfs-efivars dkwo
  2021-11-18 10:45 ` dkwo
@ 2021-11-19 12:48 ` dkwo
  2021-11-19 13:46 ` leahneukirchen
  2021-11-21 15:00 ` [ISSUE] [CLOSED] " leahneukirchen
  3 siblings, 0 replies; 5+ messages in thread
From: dkwo @ 2021-11-19 12:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/34117#issuecomment-974043337

Comment:
@leahneukirchen Do you think we could set `CONFIG_EFI_VARS=m` or unset it, in the next 5.15 kernel update?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: efivarfs vs sysfs-efivars
  2021-11-17 17:53 [ISSUE] efivarfs vs sysfs-efivars dkwo
  2021-11-18 10:45 ` dkwo
  2021-11-19 12:48 ` dkwo
@ 2021-11-19 13:46 ` leahneukirchen
  2021-11-21 15:00 ` [ISSUE] [CLOSED] " leahneukirchen
  3 siblings, 0 replies; 5+ messages in thread
From: leahneukirchen @ 2021-11-19 13:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/34117#issuecomment-974086666

Comment:
Will queue, yes.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ISSUE] [CLOSED] efivarfs vs sysfs-efivars
  2021-11-17 17:53 [ISSUE] efivarfs vs sysfs-efivars dkwo
                   ` (2 preceding siblings ...)
  2021-11-19 13:46 ` leahneukirchen
@ 2021-11-21 15:00 ` leahneukirchen
  3 siblings, 0 replies; 5+ messages in thread
From: leahneukirchen @ 2021-11-21 15:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

Closed issue by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/34117

Description:
I was trying to understand better how efi variables works.
I realised our kernel has both the old and new version, which leads to displaying two sets of efi variables:
```
$ ls /sys/firmware/efi/vars/
Display all 141 possibilities? (y or n)
$ ls /sys/firmware/efi/efivars/
Display all 139 possibilities? (y or n)
```
This is due to having both options:
```
CONFIG_EFI_VARS=y
CONFIG_EFIVAR_FS=y
```
According to Arch wiki, the first one should be avoided.
> UEFI Runtime Variables Support (old efivars sysfs interface - /sys/firmware/efi/vars). This option should be disabled to prevent any potential issues with both efivarfs and sysfs-efivars enabled.

Can anyone clarify what the correct thing to do is here, and whether we should set `CONFIG_EFI_VARS=n`?
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-21 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 17:53 [ISSUE] efivarfs vs sysfs-efivars dkwo
2021-11-18 10:45 ` dkwo
2021-11-19 12:48 ` dkwo
2021-11-19 13:46 ` leahneukirchen
2021-11-21 15:00 ` [ISSUE] [CLOSED] " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).