mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-02 07:02:16 +00:00
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>