All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] *** SUBJECT HERE ***
@ 2019-03-11 15:04 Colin Watson
  2019-03-11 15:05 ` [PATCH 1/2] Add %X to grub_vsnprintf_real and friends Colin Watson
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Colin Watson @ 2019-03-11 15:04 UTC (permalink / raw)
  To: grub-devel; +Cc: Peter Jones, Steve McIntyre, Matthew Garrett

Some UEFI firmware is easily provoked into running out of space in its
variable storage.  This is usually due to certain kernel drivers (e.g.
pstore), but regardless of the cause it can cause grub-install to fail
because it currently asks efibootmgr to delete and re-add entries, and
the deletion often doesn't result in an immediate garbage collection.
Writing variables frequently also increases wear on the NVRAM which may
have limited write cycles.  For these reasons, it's desirable to find a
way to minimise writes while still allowing grub-install to ensure that
a suitable boot entry exists.

This short patch series does so by using the efivar and efiboot
libraries directly.

Colin Watson (2):
  Add %X to grub_vsnprintf_real and friends
  Minimise writes to EFI variable storage

 INSTALL                         |   5 +
 Makefile.util.def               |  20 ++
 configure.ac                    |  12 +
 grub-core/kern/misc.c           |  10 +-
 grub-core/osdep/efivar.c        |   3 +
 grub-core/osdep/unix/efivar.c   | 503 ++++++++++++++++++++++++++++++++
 grub-core/osdep/unix/platform.c | 100 +------
 include/grub/util/install.h     |   5 +
 util/grub-install.c             |   4 +-
 9 files changed, 565 insertions(+), 97 deletions(-)
 create mode 100644 grub-core/osdep/efivar.c
 create mode 100644 grub-core/osdep/unix/efivar.c

-- 
2.17.1


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

end of thread, other threads:[~2019-03-25  0:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-11 15:04 [PATCH 0/2] *** SUBJECT HERE *** Colin Watson
2019-03-11 15:05 ` [PATCH 1/2] Add %X to grub_vsnprintf_real and friends Colin Watson
2019-03-12 12:19   ` Daniel Kiper
2019-03-12 12:29     ` Colin Watson
2019-03-12 17:44   ` Steve McIntyre
2019-03-11 15:05 ` [PATCH 2/2] Minimise writes to EFI variable storage Colin Watson
2019-03-13  1:07   ` Steve McIntyre
2019-03-22 23:29     ` Colin Watson
2019-03-25  0:06       ` Steve McIntyre
2019-03-11 15:06 ` [PATCH 0/2] " Colin Watson
2019-03-13  9:56 ` [PATCH 0/2] *** SUBJECT HERE *** Daniel Kiper
2019-03-13 10:12   ` Colin Watson
2019-03-13 10:22     ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.