Skip to content

Commit

Permalink
Fix bhyve options:
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
dag-erling committed Sep 8, 2023
1 parent 635e5ab commit c499e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vm-run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
}

Expand Down

0 comments on commit c499e70

Please sign in to comment.