Commit Graph

408 Commits

Author SHA1 Message Date
Martin Wimpress 23e3da40e3
Remove erroneous EFI_VARS references 2021-10-25 11:17:32 +01:00
Martin Wimpress 0598fb3321
Make sure Legacy boot is in legacy mode 2021-10-25 11:17:32 +01:00
Martin Wimpress 145dc472af
Show full $EFI_CODE path in boot status 2021-10-25 11:17:32 +01:00
Martin Wimpress 207ebde501
Remove test stub 2021-10-25 11:17:32 +01:00
Martin Wimpress 44673e94c6
Add guards for $EFI_CODE and $EFI_VARS
Make sure that $EFI_VARS references an actual writable file.

Check if $EFI_CODE reference a symlink, if so resolve the the real file.
2021-10-25 11:17:32 +01:00
Martin Wimpress ca03a4dada
If EFI boot was requested an no EFI firmware is available, hard stop. 2021-10-25 11:17:32 +01:00
Martin Wimpress 444616022e
Improve error message when no SecureBoot firmware was found. 2021-10-25 11:17:32 +01:00
Martin Wimpress 7a0cf72213
Add reference for Fedora 2021-10-25 11:17:32 +01:00
Martin Wimpress 44bc5faec0
Use the paths to actual firmware on Fedora, rather than to symlinks.
Useful reference in this comment: https://bugzilla.redhat.com/show_bug.cgi?id=1929357#c5
2021-10-25 11:17:32 +01:00
Martin Wimpress 9b96f899ad
Make sure cfi.pflash01always has the secure property set 2021-10-25 11:17:32 +01:00
Martin Wimpress b9f90d12c3
Disable Suspend to RAM (S3) if SecureBoot or SMM are enabled 2021-10-25 11:17:32 +01:00
Martin Wimpress a4eddaa9e5
Add SMM support, enabled by default for Windows guests 2021-10-25 11:17:32 +01:00
Martin Wimpress b6db417b81
Refactor OVMF detection and add SecureBoot support
Add 'secureboot="on"' to a VM configuration to enable SecureBoot.
2021-10-25 11:16:35 +01:00
Martin Wimpress aeb2a64720
Add efi_vars() for copying EFI variable store templates to the VM dir 2021-10-25 11:16:35 +01:00
Martin Wimpress b8d6b02796
Refactor swtpm support to catch when it is missing
Also adds the swtpm laucher to the debug shell script.
2021-10-25 11:16:35 +01:00
Martin Wimpress f23ace745a
Update download URL for OpenCore 2021-10-25 11:13:53 +01:00
Jed Spraul 454f13f8a9 Update macrecovery
Update from OpenCorePkg/Utilities/macrecovery/macrecovery.py
master branch 6107d573eb535c7708f66cebb83c767863dfd107
2021-10-25 11:10:42 +01:00
Dani Llewellyn d62d739e8a [UBUNTU]: Add canary release to test the new installer
* Add `canary` as supported Ubuntu release

Signed-off-by: Dani Llewellyn <diddledani@ubuntu.com>
2021-10-21 21:29:29 +01:00
Jed Spraul 8bb9003f5a Halt unless bash 4 or newer 2021-10-21 21:28:13 +01:00
Martin Wimpress 4634212f65
Bump version to 2.2.6 2021-10-21 01:47:03 +01:00
Martin Wimpress d4e099edb0
Remove test stub 2021-10-21 01:46:41 +01:00
Martin Wimpress e06c6119ec
Update README 2021-10-21 01:14:05 +01:00
Martin Wimpress 271f3472af
Add hash checking for FreeBSD 2021-10-21 01:13:43 +01:00
Martin Wimpress cae95e5b14
Add hash checking for openSUSE 2021-10-21 00:56:25 +01:00
Martin Wimpress ffeabdabf2
Add hash checking for Linux Mint 2021-10-21 00:54:45 +01:00
Martin Wimpress 3c2249934a
Disable all disk tuning, for the sake of compatibility. Close #98 2021-10-21 00:33:01 +01:00
Martin Wimpress 32da324717 Correct typo in --ignore-msrs-always argument 2021-10-21 00:28:03 +01:00
Martin Wimpress 936f79590c Minor comment edit 2021-10-21 00:28:03 +01:00
Martin Wimpress b915d8d797 Only display MSR alerts when required 2021-10-21 00:28:03 +01:00
Martin Wimpress a94541c5aa Order the argument parser 2021-10-21 00:28:03 +01:00
Martin Wimpress d052d913f9 Order the usage 2021-10-21 00:28:03 +01:00
Martin Wimpress acf6ef32fa Add --ignore-msrs-always argument 2021-10-21 00:28:03 +01:00
Martin Wimpress e493112688 Refactor ignore_msrs_alert to make in non-blocking 2021-10-21 00:28:03 +01:00
Martin Wimpress 119e4dd7ad White space clean up 2021-10-21 00:28:03 +01:00
Martin Wimpress af7348caf6
Refactor, and enable, OpenBSD support 2021-10-20 23:22:35 +01:00
Fabian Schmidt 94ecb1b3ec
added openbsd 7 support (#129)
Co-authored-by: Fabian Schmidt <fabian85@protonmail.com>
2021-10-20 22:07:07 +01:00
Phil Clifford 78b9a3f7f2
Politely offer to set ignore_msrs (#134)
* attempt to offer appropriate setting of ignore_msrs if needed

* Removed done TODO

* Revert "Removed done TODO"
to resolve merge conflict since all TODOS removed upstream
This reverts commit eb18fcf82932489534e3c9a244e124740dfcdf01.
2021-10-20 01:22:45 +01:00
Martin Wimpress ecd4ed043e Add list_json()
As we now have valid CSV, pipe that into a jq filter to generate JSON.

https://stackoverflow.com/a/67359273
2021-10-20 00:39:58 +01:00
Martin Wimpress 6cba256d79 Rename list_all() to list_csv() 2021-10-20 00:39:58 +01:00
Martin Wimpress f542e798c5 Make CSV output valid 2021-10-20 00:39:58 +01:00
Martin Wimpress 4eb11caa10
Store the pid of the VM 2021-10-19 20:49:57 +01:00
Martin Wimpress e9f26f7758 Update Pop!_OS support to use their API. Close #137
Also adds support for downloading the intel or nvidia versions and checks the hash.
2021-10-19 20:41:24 +01:00
Martin Wimpress 31a089d465 Update calls to check_hash() 2021-10-19 20:41:24 +01:00
Martin Wimpress ef94ff64ff check_hash() will automatically add the VM_PATH and derive the hash algorithm 2021-10-19 20:41:24 +01:00
Martin Wimpress e24f34ad9d Swallow zsync stderr 2021-10-19 20:41:24 +01:00
Martin Wimpress 14d3b99ad8 Correct openSUSE pretty name 2021-10-19 20:41:24 +01:00
Martin Wimpress b7fcb954d4 Update README.md 2021-10-19 20:41:24 +01:00
Martin Wimpress 62b7713a6d Make pretty_name() pretty 2021-10-19 20:41:24 +01:00
Martin Wimpress cf177160c2 Remove mk_vm_dir() Make sure web_get() & zsync_get() make directories 2021-10-19 20:41:24 +01:00
Martin Wimpress b71fab5798 Refactor existing hash checking to use check_hash() 2021-10-19 20:41:24 +01:00