File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 4040 binScripts = microvmConfig . binScripts // {
4141 microvm-run = ''
4242 set -eou pipefail
43+ unset EXTRA_ARGS
4344 ${ preStart }
4445 ${ createVolumesScript vmHostPackages microvmConfig . volumes }
4546 ${ lib . optionalString ( hypervisorConfig . requiresMacvtapAsFds or false ) openMacvtapFds }
4647
47- exec ${ execArg } ${ command }
48+ exec ${ execArg } ${ command } '' ${EXTRA_ARGS:-}
4849 '' ;
4950 } // lib . optionalAttrs canShutdown {
5051 microvm-shutdown = shutdownCommand ;
Original file line number Diff line number Diff line change 5858 } ;
5959
6060 preStart = mkOption {
61- description = "Commands to run before starting the hypervisor" ;
61+ description = ''
62+ Commands to run before starting the hypervisor.
63+
64+ Additional arguments can be passed to the hypervisor using the EXTRA_ARGS variable.
65+ '' ;
6266 default = "" ;
6367 type = types . lines ;
6468 } ;
You can’t perform that action at this time.
0 commit comments