Skip to content

Commit bf4a653

Browse files
committed
runner: allow passing extra arguments to the VMM via preStart script
1 parent 9694139 commit bf4a653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/runner.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ let
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;

0 commit comments

Comments
 (0)