No more disks limitation with latest UEFI firmware

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
This commit is contained in:
Olivier Cochard-Labbé
2019-03-02 01:10:06 +01:00
committed by GitHub
parent d885a79ebd
commit 816ac135af

View File

@@ -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