Make vm-bhyve compatible with verbose boot dmesg output

This commit is contained in:
matias pizarro
2017-01-15 21:22:11 +01:00
parent 8828c8b7d1
commit 57e9005e39

View File

@@ -76,7 +76,9 @@ util::check_bhyve_support(){
fi
# check ept for intel
_mesg=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1)
_mesg1=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1)
_mesg2=$(grep -E '^[ ]+Secondary Processor Controls' /var/run/dmesg.boot | tail -n 1)
_mesg="${_mesg1}${_mesg2}"
if [ -n "${_mesg}" ]; then