File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 4343      ${ preStart }  
4444      ${ createVolumesScript   vmHostPackages  microvmConfig . volumes }  
4545      ${ lib . optionalString   ( hypervisorConfig . requiresMacvtapAsFds   or  false )  openMacvtapFds }  
46+       runtime_args=${ lib . optionalString   ( microvmConfig . extraArgsScript   !=  null )  ''  
47+         $(${ microvmConfig . extraArgsScript } ) 
48+       '' } 
4649
47-       exec ${ execArg }  ${ command }  
50+       exec ${ execArg }  ${ command }   '' ${runtime_args:-}  
4851    '' ; 
4952  }  //  lib . optionalAttrs   canShutdown  { 
5053    microvm-shutdown   =  shutdownCommand ; 
Original file line number Diff line number Diff line change 6363      type   =  types . lines ; 
6464    } ; 
6565
66+     extraArgsScript   =  mkOption   { 
67+       type   =  types . nullOr   types . str ; 
68+       default   =  null ; 
69+       description   =  '' 
70+         A script to provide additional arguments for the hypervisor at runtime. 
71+ 
72+         The script must output a single line with arguments for the hypervisor. 
73+       '' ; 
74+     } ; 
75+ 
6676    socket   =  mkOption   { 
6777      description   =  "Hypervisor control socket path" ; 
6878      default   =  "${ hostName } .sock" ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments