Skip to content

Commit 6f563ca

Browse files
committed
packages: cleanup withDebug option
1 parent 4b2ffbc commit 6f563ca

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

packages/by-name/contrast/node-installer-image/package.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
contrastPkgsStatic,
1515
OVMF-SNP,
1616
OVMF-TDX,
17-
debugRuntime ? false,
17+
18+
withDebug ? false,
1819
withGPU ? false,
1920
}:
2021

2122
let
2223
os-image = kata.image.override {
23-
inherit withGPU;
24-
withDebug = debugRuntime;
24+
inherit withGPU withDebug;
2525
};
2626

2727
ovmf = OVMF-TDX.override {
@@ -96,7 +96,7 @@ let
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";
@@ -222,7 +222,7 @@ in
222222
ociImageLayout {
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
};

packages/by-name/contrast/reference-values/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let
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
[
@@ -58,7 +58,7 @@ let
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
{

packages/by-name/contrast/snp-id-blocks/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let
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;

packages/by-name/kata/calculateSnpLaunchDigest/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
{
1313
os-image,
14-
debug,
14+
withDebug ? false,
1515
}:
1616

1717
let
@@ -21,7 +21,7 @@ let
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

packages/by-name/kata/calculateTdxLaunchDigests/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
os-image,
1313
ovmf,
1414
withGPU ? false,
15-
debug,
15+
withDebug ? false,
1616
}:
1717

1818
let
@@ -21,7 +21,7 @@ let
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

0 commit comments

Comments
 (0)