Add option for custom UEFI loader

Allows for users to continue to use custom UEFI loaders as well as fixes regression introduced between 1.2.x and 1.3 where users maintained the loader within /vm/.config/BHYVE_UEFI.fd and guests no longer boot after upgrade (even though man page still stated /vm/.config/BHYVE_UEFI.fd was valid).
This commit is contained in:
Jason Tubnor
2019-04-23 20:21:58 +10:00
committed by GitHub
parent 76caea3b9b
commit dfb8f0e865

View File

@@ -139,6 +139,9 @@ vm::run(){
uefi-csm)
_bootrom="/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd"
;;
uefi-custom)
_bootrom="${VM_DS_PATH}/.config/BHYVE_UEFI.fd"
;;
*)
_bootrom="/usr/local/share/uefi-firmware/BHYVE_UEFI.fd"
;;