Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As indicated in #21849, loading the machine config can flake/fail with an EOF JSON error indicating an incomplete file. Address the issue by atomically writing the config. This way, it is not possible to load an incomplete or partially written file. The lock can be acquired later on to sync state. [NO NEW TESTS NEEDED] as it's a hard-to-hit race. Fixes: #21849 Signed-off-by: Valentin Rothberg <[email protected]>
- Loading branch information