aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-10-16 14:48:39 +0000
committerMark Johnston <markj@FreeBSD.org>2025-10-16 14:50:33 +0000
commitf19f17b3af675fbbc1244b66bbd8fb4a9836cb02 (patch)
tree95fe2cbdfa5ad4a696546fb8cf7ebc8ba95b929b
parent79e57ea662d92ffcbe7d65854a284aefac6a332d (diff)
vmrun.sh: Don't require firmware on amd64 unless -E was specified
PR: 290232 Reported by: David Marker <dave@freedave.net> Fixes: aa34b1d20e44 ("vmrun.sh: Add arm64 support") MFC after: 3 days
-rwxr-xr-xshare/examples/bhyve/vmrun.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh
index 52935363023a..e0052e781dc0 100755
--- a/share/examples/bhyve/vmrun.sh
+++ b/share/examples/bhyve/vmrun.sh
@@ -268,8 +268,10 @@ fi
if [ -z "$firmware" ]; then
case ${platform} in
amd64)
- firmware="${efi_firmware}"
- firmware_pkg="edk2-bhyve"
+ if [ ${efi_mode} -ne 0 ]; then
+ firmware="${efi_firmware}"
+ firmware_pkg="edk2-bhyve"
+ fi
;;
arm64)
firmware="${uboot_firmware}"