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 40
40
binScripts = microvmConfig . binScripts // {
41
41
microvm-run = ''
42
42
set -eou pipefail
43
+ unset EXTRA_ARGS
43
44
${ preStart }
44
45
${ createVolumesScript vmHostPackages microvmConfig . volumes }
45
46
${ lib . optionalString ( hypervisorConfig . requiresMacvtapAsFds or false ) openMacvtapFds }
46
47
47
- exec ${ execArg } ${ command }
48
+ exec ${ execArg } ${ command } '' ${EXTRA_ARGS:-}
48
49
'' ;
49
50
} // lib . optionalAttrs canShutdown {
50
51
microvm-shutdown = shutdownCommand ;
Original file line number Diff line number Diff line change 58
58
} ;
59
59
60
60
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
+ '' ;
62
66
default = "" ;
63
67
type = types . lines ;
64
68
} ;
You can’t perform that action at this time.
0 commit comments