Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
allow specificiation of bhyveload loader file instead of using os file
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfiberiru committed Jun 20, 2018
1 parent b37d3a5 commit c2ad605
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/vm-guest
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@
# _memory: RAM
# _guest: guest type
# _bootdisk: full path to primary disk
# _bhyveload_loader: full path to loader used by bhyveload
#
# I've written append wrong as it just needs to be something other than 'write',
# and is much more readable when all the util::log* calls line up
@@ -68,6 +69,10 @@ guest::load(){
else
_args="${_args} -d ${_bootdisk}"
fi
if [ -n "${_bhyveload_loader}" ] ; then
_args="${_args} -l ${_bhyveload_loader}"
fi

;;
grub)
_command=$(which grub-bhyve)
1 change: 1 addition & 0 deletions lib/vm-run
Original file line number Diff line number Diff line change
@@ -61,6 +61,7 @@ vm::run(){
config::get "_debug" "debug" "no"
config::get "_ignore_msr" "ignore_bad_msr" "no"
config::get "_bhyve_options" "bhyve_options"
config::get "_bhyveload_loader" "bhyveload_loader"

# generate a uuid if we don't have one already
if [ -z "${_uuid}" ]; then

0 comments on commit c2ad605

Please sign in to comment.