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

2019-03-24 Thread Steve McIntyre
On Fri, Mar 22, 2019 at 11:29:15PM +, Colin Watson wrote: >On Wed, Mar 13, 2019 at 01:07:20AM +, Steve McIntyre wrote: >> On Mon, Mar 11, 2019 at 03:05:46PM +, Colin Watson wrote: >> >+/* Boot option attributes. */ >> >+#define LOAD_OPTION_ACTIVE 0x0001 >> >+ >> >+/* GUIDs. */ >>

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

2019-03-22 Thread Colin Watson
On Wed, Mar 13, 2019 at 01:07:20AM +, Steve McIntyre wrote: > On Mon, Mar 11, 2019 at 03:05:46PM +, Colin Watson wrote: > >+/* Boot option attributes. */ > >+#define LOAD_OPTION_ACTIVE 0x0001 > >+ > >+/* GUIDs. */ > >+#define BLKX_UNKNOWN_GUID \ > >+ EFI_GUID (0x47c7b225, 0xc42a, 0x1

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

2019-03-12 Thread Steve McIntyre
First of all, thanks very much for doing this! (For other people: I came up with a previous way of doing this years ago, using efibootmgr to ask about the state of a variable before maybe deleting and re-setting it.) On Mon, Mar 11, 2019 at 03:05:46PM +, Colin Watson wrote: >Some UEFI firmwar

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

2019-03-11 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