File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1919 preStart = hypervisorConfig . preStart or microvmConfig . preStart ;
2020 tapMultiQueue = hypervisorConfig . tapMultiQueue or false ;
2121
22+ execArg = lib . optionalString microvmConfig . prettyProcname
23+ ''-a "microvm@${ microvmConfig . hostName } "'' ;
24+
2225 runScriptBin = pkgs . buildPackages . writeScriptBin "microvm-run" ''
2326 #! ${ pkgs . buildPackages . runtimeShell } -e
2427
2528 ${ preStart }
2629 ${ createVolumesScript pkgs . buildPackages microvmConfig . volumes }
2730 ${ lib . optionalString ( hypervisorConfig . requiresMacvtapAsFds or false ) openMacvtapFds }
2831
29- exec -a "microvm- ${ microvmConfig . hostName } " ${ command }
32+ exec ${ execArg } ${ command }
3033 '' ;
3134
3235 shutdownScriptBin = pkgs . buildPackages . writeScriptBin "microvm-shutdown" ''
Original file line number Diff line number Diff line change 414414 description = "A Hypervisor's sandbox directory" ;
415415 } ;
416416
417+ prettyProcnames = mkOption {
418+ type = types . bool ;
419+ default = true ;
420+ description = ''
421+ Set a recognizable process name right before executing the Hyperisor.
422+ '' ;
423+ } ;
424+
417425 runner = mkOption {
418426 description = "Generated Hypervisor runner for this NixOS" ;
419427 type = with types ; attrsOf package ;
You can’t perform that action at this time.
0 commit comments