Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

efivarfs vs sysfs-efivars #34117

Closed
dkwo opened this issue Nov 17, 2021 · 3 comments
Closed

efivarfs vs sysfs-efivars #34117

dkwo opened this issue Nov 17, 2021 · 3 comments

Comments

@dkwo
Copy link
Contributor

dkwo commented Nov 17, 2021

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.

@dkwo
Copy link
Contributor Author

dkwo commented Nov 18, 2021

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

@dkwo
Copy link
Contributor Author

dkwo commented Nov 19, 2021

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

@leahneukirchen
Copy link
Member

Will queue, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants