Skip to content

Commit

Permalink
Put the bhyvectl destroy back in. some users need it for Linux reboot…
Browse files Browse the repository at this point in the history
…s to work
  • Loading branch information
churchers committed May 4, 2016
1 parent 513b81d commit ea0e02a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions lib/vm-run
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ __vm_run(){

while [ 1 ]; do

# destroy existing vmm
# freebsd seems happy to run a bhyveload/bhyve loop
# grub-bhyve doesn't seem to like it for a lot of users
# Peter says don't destroy in Windows instructions, so don't if in UEFI mode
if [ -e "/dev/vmm/${_name}" -a -z "${_uefi}" ]; then
bhyvectl --vm="${_name}" --destroy >/dev/null 2>&1
if [ $? -ne 0 ]; then
__log "guest" "${_name}" "failed to destroy existing vmm device"
_exit=15
break
fi
fi

# set full iso path
# use null.iso if not an install and uefi firmware
[ -n "${_iso}" ] && _iso_dev="-s 3:0,ahci-cd,${vm_dir}/.iso/${_iso}"
Expand Down
4 changes: 2 additions & 2 deletions vm
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

VERSION=1.0-p1
VERSION_INT=100009
VERSION=1.0-p2
VERSION_INT=100010
VERSION_BSD=$(uname -K)
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin

Expand Down

0 comments on commit ea0e02a

Please sign in to comment.