-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Itxaka <itxaka@kairos.io>
- Loading branch information
Showing
6 changed files
with
265 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
2 Files provided for testing efivars | ||
|
||
efivars.fd is the compiled efivars in a format that qemu can understand | ||
efivars.json is the original json from where the efivars.fd file was created | ||
|
||
efivars.fd can be recreated by using `virt-fw-vars` from the package `python3-virt-firmware` and is used to manipulate | ||
efivars files and generate new ones from templates. | ||
|
||
Assuming the OVMF package is installed and the default firmware and efivars files are at /usr/share/OVMF you can run the following to regenerate the efivars file | ||
|
||
```bash | ||
virt-fw-vars -i /usr/share/OVMF/OVMF_VARS.fd --set-json efivars.json -o efivars.fd | ||
``` | ||
|
||
This uses `/usr/share/OVMF/OVMF_VARS.fd` as the base template (is empty), loads the vars from `efivars.json` and outputs the efivars.fd file | ||
|
||
|
||
The current efivars sets the boot order to first boot from HD and then from DVD. | ||
Enables SecureBoot wiht the default keys. | ||
It also bundles the certs for our testing, available at $ROOT/tess/keys/ and what our test UKI EFI files are signed for. | ||
|
||
This helps when testing install media as on the first boot there is nothing on disk so it falls back to DVD, then after the first reboot it boots from the installed system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters