Files
kata-containers/tools
Huy Pham 9ddcc53f6f kernel: build: resolve race condition in parallel config generation
During parallel builds of different kernel variants (e.g., generic,
debug, nvidia-gpu), the config generation script wrote to a shared
static path: `tools/packaging/kernel/configs/fragments/x86_64/.config`.

This caused critical race conditions where concurrent processes would
overwrite or delete the `.config` file while another process was reading
it, leading to sporadic build failures with "No such file or directory"
errors.

Resolve this by changing the temporary configuration path to be
build-specific, writing it inside the unique kernel build directory
(e.g., `kata-linux-.../.config.generated`). The final config is still
copied to `.config` in the kernel source tree as before, but the
intermediate merge process is now isolated.

Signed-off-by: Huy Pham <huypham@google.com>
2026-05-21 09:19:45 -07:00
..
2026-05-18 09:46:42 +01:00