Skip to content

Commit df550cc

Browse files
committed
more cleanup
1 parent 294fa33 commit df550cc

5 files changed

Lines changed: 5 additions & 218 deletions

File tree

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export TOPDIR := $(shell pwd)/
44

55
include Make.rules
66

7-
efiupdate: efi-updatevar
7+
efi-updatevar: efi-updatevar.o lib/lib.a
8+
$(CC) $(ARCH3264) -o $@ $< lib/lib.a
89

910
all: $(BINARIES) $(MANPAGES)
1011

@@ -19,9 +20,6 @@ install: all
1920
lib/lib.a:
2021
$(MAKE) -C lib $(notdir $@)
2122

22-
efi-updatevar: efi-updatevar.o lib/lib.a
23-
$(CC) $(ARCH3264) -o $@ $< lib/lib.a
24-
2523
clean:
2624
rm -f $(BINARIES) *.o
2725
rm -f doc/*.1

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The upstream efi-updatevar was modified so that it doesn't write to the efivars
1010

1111
```sh
1212
sudo dnf group install c-development
13-
sudo dnf install efivar-devel gnu-efi-devel openssl openssl-devel openssl-devel-engine help2man
13+
sudo dnf install gnu-efi-devel openssl-devel
1414
```
1515

1616
### Building efi-updatevar
@@ -42,13 +42,7 @@ sbctl create-keys
4242
sbctl enroll-keys --microsoft --export auth
4343
```
4444

45-
Allow writing to efivarfs:
46-
47-
```sh
48-
chattr -i /sys/firmware/efi/efivars/*
49-
```
50-
51-
Create the vardata files:
45+
Convert auth to vardata:
5246

5347
```sh
5448
./efi-updatevar db.auth /tmp/db.vardata db
@@ -60,6 +54,7 @@ To update the efi variables, simply copy the vardata files to their correct dest
6054
The destination filenames in the efivars fs look random, but they are always the same:
6155

6256
```sh
57+
chattr -i /sys/firmware/efi/efivars/*
6358
cp /tmp/db.vardata /sys/firmware/efi/efivars/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f
6459
cp /tmp/KEK.vardata /sys/firmware/efi/efivars/KEK-8be4df61-93ca-11d2-aa0d-00e098032b8c
6560
cp /tmp/PK.vardata /sys/firmware/efi/efivars/PK-8be4df61-93ca-11d2-aa0d-00e098032b8c

ms-kek.crt

Lines changed: 0 additions & 121 deletions
This file was deleted.

ms-uefi.crt

Lines changed: 0 additions & 35 deletions
This file was deleted.

xxdi.pl

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)