Skip to content

Commit

Permalink
Merge pull request araujobsd#3 from iXsystems/bhyveload-loader
Browse files Browse the repository at this point in the history
allow specificiation of bhyveload loader file instead of using os file
  • Loading branch information
araujobsd authored Jun 21, 2018
2 parents b37d3a5 + c2ad605 commit 9594dc8
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down Expand 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)
Expand Down
1 change: 1 addition & 0 deletions lib/vm-run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9594dc8

Please sign in to comment.