From c499e70759160f79270312c480c19b1fc2d7f5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 8 Sep 2023 11:35:55 +0200 Subject: [PATCH] Fix bhyve options: - Drop -P and -w, which are intended for debugging only. - When configuring UEFI, don't overwrite previous options. - When configuring UEFI, don't repeat -H. --- lib/vm-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vm-run b/lib/vm-run index 301b801b..634d366d 100644 --- a/lib/vm-run +++ b/lib/vm-run @@ -109,7 +109,7 @@ vm::run(){ fi # default bhyve options - _opts="-AHP" + _opts="-AH" # ignore access to unimplemented Model Specific Registers? config::yesno "ignore_msr" && _opts="${_opts}w" @@ -319,7 +319,7 @@ vm::uefi(){ _bootrom="${_bootrom},${VM_DS_PATH}/${_name}/uefi-vars.fd" fi - _opts="-Hwl bootrom,${_bootrom}" + _opts="${_opts} -l bootrom,${_bootrom}" _uefi="yes" }