Hi, I would like to modify efivars at /sys/firmware/efi/efivars/. But I can't modify it using root. The file : -rw-r--r-- 1 root root 31 Mar 4 19:04 /sys/firmware/efi/efivars/OilSetup-88d1911c-ab4a-4335-9e9a-26be9081acc3 the mount point : efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) Any ideas ? Thanks -- Lucas Tanure
Hello Lucas! On 03/04/2017 09:24 PM, Lucas Tanure wrote:
I would like to modify efivars at /sys/firmware/efi/efivars/. But I can't modify it using root.
The file : -rw-r--r-- 1 root root 31 Mar 4 19:04 /sys/firmware/efi/efivars/OilSetup-88d1911c-ab4a-4335-9e9a-26be9081acc3
the mount point : efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
Depending on the variable it may be that the corresponding file is marked as immutable. See commit ed8b0de5a33d for details. Regards, Markus
Ok, But How is the right way to change this efivars ? build a kernel with some define or config ? Use a specific tool for that ? thanks On Sat, Mar 4, 2017 at 9:31 PM, Markus Böhme <markus.boehme@mailbox.org> wrote:
Hello Lucas!
On 03/04/2017 09:24 PM, Lucas Tanure wrote:
I would like to modify efivars at /sys/firmware/efi/efivars/. But I can't modify it using root.
The file : -rw-r--r-- 1 root root 31 Mar 4 19:04 /sys/firmware/efi/efivars/OilSetup-88d1911c-ab4a-4335-9e9a-26be9081acc3
the mount point : efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
Depending on the variable it may be that the corresponding file is marked as immutable. See commit ed8b0de5a33d for details.
Regards, Markus
-- Lucas Tanure Embedded Developer +55 19 988176559
On 03/05/2017 10:45 AM, Lucas Tanure wrote:
Ok, But How is the right way to change this efivars ? build a kernel with some define or config ? Use a specific tool for that ?
Documentation/filesystems/efivars.txt recommends to remove the immutable flag using chattr -i file if you want to change a protected variable. Have you tried that? Regards, Markus
Hi, I didn't tried this yet. I will try today. Thanks! On Sun, Mar 5, 2017 at 2:20 PM, Markus Böhme <markus.boehme@mailbox.org> wrote:
On 03/05/2017 10:45 AM, Lucas Tanure wrote:
Ok, But How is the right way to change this efivars ? build a kernel with some define or config ? Use a specific tool for that ?
Documentation/filesystems/efivars.txt recommends to remove the immutable flag using chattr -i file if you want to change a protected variable. Have you tried that?
Regards, Markus
-- Lucas Tanure Embedded Developer +55 19 988176559
Worked. I can change the value, but this didn't change how the firmware works. At least for my lenovo 700 17ISK On Mon, Mar 6, 2017 at 9:39 AM, Lucas Tanure <tanure@linux.com> wrote:
Hi,
I didn't tried this yet. I will try today.
Thanks!
On Sun, Mar 5, 2017 at 2:20 PM, Markus Böhme <markus.boehme@mailbox.org> wrote:
On 03/05/2017 10:45 AM, Lucas Tanure wrote:
Ok, But How is the right way to change this efivars ? build a kernel with some define or config ? Use a specific tool for that ?
Documentation/filesystems/efivars.txt recommends to remove the immutable flag using chattr -i file if you want to change a protected variable. Have you tried that?
Regards, Markus
-- Lucas Tanure Embedded Developer +55 19 988176559
-- Lucas Tanure Embedded Developer +55 19 988176559
participants (2)
-
Lucas Tanure -
Markus Böhme