Skip to content

Commit

Permalink
efi: Add support for a UEFI variable filesystem
Browse files Browse the repository at this point in the history
The existing EFI variables code only supports variables of up to 1024
bytes. This limitation existed in version 0.99 of the EFI specification,
but was removed before any full releases. Since variables can now be
larger than a single page, sysfs isn't the best interface for this. So,
instead, let's add a filesystem. Variables can be read, written and
created, with the first 4 bytes of each variable representing its UEFI
attributes. The create() method doesn't actually commit to flash since
zero-length variables can't exist per-spec.

Updates from Jeremy Kerr <jeremy.kerr@canonical.com>.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
  • Loading branch information
Matthew Garrett authored and Matt Fleming committed Oct 30, 2012
1 parent ddffeb8 commit 5d9db88
Show file tree
Hide file tree
Showing 2 changed files with 383 additions and 6 deletions.

0 comments on commit 5d9db88

Please sign in to comment.