In the Arch Wiki I see that the two kernel variables CONFIG_EFIVAR_FS
& CONFIG_EFI_VARS
should be set =y
and =n
respectively. Arch says, "This option should be disabled to prevent any potential issues with both efivarfs and sysfs-efivars enabled." In Ubuntu 20.04, they are both set to =y
. If I am understanding correctly, it appears that as a result, I have both dump-*
files in /sys/firmware/efi/efivars
and dump-*
directories in /sys/firmware/efi/vars
.
$ ls -l efivars/dump*
-rw-r--r-- 1 root root 644 Feb 27 00:12 efivars/dump-type0-10-1-1645912016-C-cfc8fc79-be2e-4ddc-97f0-9f98bfe298a0
[& etc.]
$ ls -l vars/dump*
vars/dump-type0-10-1-1645912016-C-cfc8fc79-be2e-4ddc-97f0-9f98bfe298a0:
total 0
-r-------- 1 root root 4096 Feb 27 00:48 attributes
-r-------- 1 root root 4096 Feb 27 00:48 data
-r-------- 1 root root 4096 Feb 27 00:48 guid
-rw------- 1 root root 4096 Feb 27 00:48 raw_var
-r-------- 1 root root 4096 Feb 27 00:48 size
[& etc.]
As my NVRAM has been filled up with these (see here and here for troubles due to the acpi-call
package, particularly in aging Thinkpads - mine is a W530), I am wondering if my understanding is correct, and that therefore I need to remove both the files and the directories with their contents?
Edit1: Following user1686's answer, I tried deleting ../efivars/dump*
. Even after a reboot, the ../vars/dump*
directories remain. Worse, the ../efivars/dump*
files are back!
Edit2: I deleted ../efivars/dump*
for a second time and after reboot they are now gone, along with the ../vars/dump*
directories.