Skip to content

Commit

Permalink
No more disks limitation with latest UEFI firmware
Browse files Browse the repository at this point in the history
It seems we don't need to limit the number of disks since UEFI firmware version 0.2.
Tested with this setup: 2 ahci-hd, 2 nvme and 1 virtio-blk disks at the same time and no UEFI boot problem:
# kenv efi-version
2.40
# kenv smbios.system.product
BHYVE
# sysctl kern.disks
kern.disks: ada7 ada6 nda1 nda0 cd0 vtbd0
  • Loading branch information
ocochard authored Mar 2, 2019
1 parent d885a79 commit 816ac13
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/vm-run
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,6 @@ vm::bhyve_device_disks(){
if [ -n "${_uefi}" ]; then
_slot=$((_slot + 1))

# stop at slot 6 on uefi
if [ ${_slot} -ge 7 ]; then
util::log "guest" "${_name}" "ending disks at disk${_num} due to UEFI firmware limitations"
break
fi
else
_func=$((_func + 1))
fi
Expand Down

0 comments on commit 816ac13

Please sign in to comment.