When using nmdm(4) as the console (like nmdm0A), grub-bhyve 0.30 will hang until the corresponding "B" device is open by another process.
# grub-bhyve -c /dev/nmdm0A -d /boot/grub -r hd0,msdos1 -m debian-7.8.0.map -M 1024 debian-7.8.0
will hang until any command accesses /dev/nmdm0B:
# kermit -l /dev/nmdm0B
Created attachment 157153 [details]
Opening the console device with O_NONBLOCK seems to fix the issue.
A commit references this bug:
Date: Tue May 26 16:55:41 UTC 2015
New revision: 387492
- Add patch to fix bug with hanging when using nmdm as console
- Bump PORTREV
Submitted by: olgeni@