View | Details | Raw Unified | Return to bug 222496
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	vm-bhyve
3
PORTNAME=	vm-bhyve
4
PORTVERSION=	1.1.8
4
PORTVERSION=	1.1.8
5
PORTREVISION=	1
5
DISTVERSIONPREFIX=v
6
DISTVERSIONPREFIX=v
6
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
7
8
(-)files/patch-lib_vm-util (+22 lines)
Line 0 Link Here
1
--- lib/vm-util.orig
2
+++ lib/vm-util
3
@@ -55,7 +55,7 @@
4
 # @modifies VM_NO_UG
5
 #
6
 util::check_bhyve_support(){
7
-    local _mesg _result
8
+    local _mesg _mesg1 _mesg2 _result
9
 
10
     # basic checks
11
     [ `id -u` -ne 0 ] && util::err "virtual machines can only be managed by root"
12
@@ -73,7 +73,9 @@
13
     fi
14
 
15
     # check ept for intel
16
-    _mesg=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1)
17
+    _mesg1=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1)
18
+    _mesg2=$(grep -E '^[ ]+Secondary Processor Controls' /var/run/dmesg.boot | tail -n 1)
19
+    _mesg="${_mesg1}${_mesg2}"
20
 
21
     if [ -n "${_mesg}" ]; then
22
 
(-)files/patch-lib_vm-zfs (+11 lines)
Line 0 Link Here
1
--- lib/vm-zfs.orig
2
+++ lib/vm-zfs
3
@@ -45,7 +45,7 @@
4
 
5
     # check for zfs storage location
6
     # user should specify "zfs:pool/dataset" if they want ZFS support
7
-    if [ ${vm_dir%%:*} = "zfs" ]; then
8
+    if [ "${vm_dir%%:*}" = "zfs" ]; then
9
 
10
         # check zfs running
11
         kldstat -qm zfs >/dev/null 2>&1

Return to bug 222496