[PATCH v3 2/2] Minimise writes to EFI variable storage

2019-03-23 Thread Colin Watson
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 of

[PATCH v3 1/2] Add %X to grub_vsnprintf_real and friends

2019-03-23 Thread Colin Watson
This is needed for UEFI Boot* variables, which the standard says are named using upper-case hexadecimal. Signed-off-by: Colin Watson --- grub-core/kern/misc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c index 3b633d51f.

[PATCH v3 0/2] Minimise writes to EFI variable storage

2019-03-23 Thread Colin Watson
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 of

Re: [PATCH v2 2/2] Minimise writes to EFI variable storage

2019-03-23 Thread Colin Watson
On Fri, Mar 22, 2019 at 11:31:18PM +, Colin Watson wrote: > grub-install now reuses existing boot entries where possible, and avoids > writing to variables when the new contents are the same as the old > contents. In the common upgrade case where nothing needs to change, it > no longer writes