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 19
19
preStart = hypervisorConfig . preStart or microvmConfig . preStart ;
20
20
tapMultiQueue = hypervisorConfig . tapMultiQueue or false ;
21
21
22
+ execArg = lib . optionalString microvmConfig . prettyProcname
23
+ ''-a "microvm@${ microvmConfig . hostName } "'' ;
24
+
22
25
runScriptBin = pkgs . buildPackages . writeScriptBin "microvm-run" ''
23
26
#! ${ pkgs . buildPackages . runtimeShell } -e
24
27
25
28
${ preStart }
26
29
${ createVolumesScript pkgs . buildPackages microvmConfig . volumes }
27
30
${ lib . optionalString ( hypervisorConfig . requiresMacvtapAsFds or false ) openMacvtapFds }
28
31
29
- exec -a "microvm- ${ microvmConfig . hostName } " ${ command }
32
+ exec ${ execArg } ${ command }
30
33
'' ;
31
34
32
35
shutdownScriptBin = pkgs . buildPackages . writeScriptBin "microvm-shutdown" ''
Original file line number Diff line number Diff line change 414
414
description = "A Hypervisor's sandbox directory" ;
415
415
} ;
416
416
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
+
417
425
runner = mkOption {
418
426
description = "Generated Hypervisor runner for this NixOS" ;
419
427
type = with types ; attrsOf package ;
You can’t perform that action at this time.
0 commit comments