File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
calculateTdxLaunchDigests Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1414 contrastPkgsStatic ,
1515 OVMF-SNP ,
1616 OVMF-TDX ,
17- debugRuntime ? false ,
17+
18+ withDebug ? false ,
1819 withGPU ? false ,
1920} :
2021
2122let
2223 os-image = kata . image . override {
23- inherit withGPU ;
24- withDebug = debugRuntime ;
24+ inherit withGPU withDebug ;
2525 } ;
2626
2727 ovmf = OVMF-TDX . override {
9696 path = "/opt/edgeless/@@runtimeName@@/share/qemu/efi-virtio.rom" ;
9797 }
9898 ] ;
99- inherit debugRuntime ;
99+ debugRuntime = withDebug ;
100100 qemuExtraKernelParams = os-image . cmdline ;
101101 } ;
102102 destination = "/config/contrast-node-install.json" ;
222222ociImageLayout {
223223 manifests = [ manifest ] ;
224224 passthru = {
225- inherit debugRuntime os-image ;
225+ inherit withDebug os-image ;
226226 runtimeHash = hashDirs {
227227 # Layers without node-installer, or we have a circular dependency!
228228 # To still account for node-installer changes in the runtime hash,
@@ -231,7 +231,7 @@ ociImageLayout {
231231 name = "runtime-hash-kata" ;
232232 } ;
233233 gpu = node-installer-image . override {
234- inherit debugRuntime ;
234+ inherit withDebug ;
235235 withGPU = true ;
236236 } ;
237237 } ;
Original file line number Diff line number Diff line change 2626 } ;
2727 launch-digest = kata . calculateSnpLaunchDigest {
2828 inherit os-image ;
29- debug = node-installer-image . debugRuntime ;
29+ inherit ( node-installer-image ) withDebug ;
3030 } ;
3131 in
3232 [
5858 let
5959 launch-digests = kata . calculateTdxLaunchDigests {
6060 inherit os-image ovmf withGPU ;
61- debug = node-installer-image . debugRuntime ;
61+ inherit ( node-installer-image ) withDebug ;
6262 } ;
6363 in
6464 {
Original file line number Diff line number Diff line change 1414 guestPolicy = builtins . fromJSON ( builtins . readFile ../reference-values/snpGuestPolicyQEMU.json ) ;
1515 launch-digest = kata . calculateSnpLaunchDigest {
1616 inherit os-image ;
17- debug = node-installer-image . debugRuntime ;
17+ inherit ( node-installer-image ) withDebug ;
1818 } ;
1919 idBlocks = calculateSnpIDBlock {
2020 snp-launch-digest = launch-digest ;
Original file line number Diff line number Diff line change 1111
1212{
1313 os-image ,
14- debug ,
14+ withDebug ? false ,
1515} :
1616
1717let
2121
2222 # Kata uses a base command line and then appends the command line from the kata config (i.e. also our node-installer config).
2323 # Thus, we need to perform the same steps when calculating the digest.
24- baseCmdline = if debug then kata . runtime . cmdline . debug else kata . runtime . cmdline . default ;
24+ baseCmdline = if withDebug then kata . runtime . cmdline . debug else kata . runtime . cmdline . default ;
2525 cmdline = lib . strings . concatStringsSep " " [
2626 baseCmdline
2727 os-image . cmdline
Original file line number Diff line number Diff line change 1212 os-image ,
1313 ovmf ,
1414 withGPU ? false ,
15- debug ,
15+ withDebug ? false ,
1616} :
1717
1818let
2121 initrd = "${ os-image } /initrd" ;
2222 # Kata uses a base command line and then appends the command line from the kata config (i.e. also our node-installer config).
2323 # Thus, we need to perform the same steps when calculating the digest.
24- baseCmdline = if debug then kata . runtime . cmdline . debug else kata . runtime . cmdline . default ;
24+ baseCmdline = if withDebug then kata . runtime . cmdline . debug else kata . runtime . cmdline . default ;
2525 cmdline = lib . strings . concatStringsSep " " [
2626 baseCmdline
2727 os-image . cmdline
You can’t perform that action at this time.
0 commit comments