spiegel_podman/pkg
Valentin Rothberg f8abd7ff75 machine config: make write atomic
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 <vrothberg@redhat.com>
2024-02-28 09:44:41 +01:00
..
annotations Comply to Kubernetes specifications for annotation size. 2024-02-20 14:58:35 -08:00
api Ignore docker's end point config when the final network mode isn't bridge. 2024-02-23 21:11:25 +00:00
auth Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
autoupdate Bump Go module to v5 2024-02-08 09:35:39 -05:00
bindings Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Bump Go module to v5 2024-02-08 09:35:39 -05:00
copy Bump Go module to v5 2024-02-08 09:35:39 -05:00
criu chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ctime chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
domain Merge pull request #21699 from vikas-goel/i21663 2024-02-21 15:00:25 +00:00
emulation chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
env chore: extract duplicate codes 2024-01-29 10:10:26 +08:00
errorhandling Fix typos 2023-02-11 18:23:24 +01:00
farm Bump Go module to v5 2024-02-08 09:35:39 -05:00
fileserver Bump Go module to v5 2024-02-08 09:35:39 -05:00
inspect Bump Go module to v5 2024-02-08 09:35:39 -05:00
k8s.io Bump Go module to v5 2024-02-08 09:35:39 -05:00
lookup Cease using deprecated runc userlookup 2024-02-02 11:02:43 -05:00
machine machine config: make write atomic 2024-02-28 09:44:41 +01:00
namespaces Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
parallel Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps Bump Go module to v5 2024-02-08 09:35:39 -05:00
rctl Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
rootless Bump Go module to v5 2024-02-08 09:35:39 -05:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
specgen Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
specgenutil Bump Go module to v5 2024-02-08 09:35:39 -05:00
specgenutilexternal Quadlet container mount - support non key=val options 2023-09-27 16:20:00 +03:00
systemd Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
timetype Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
trust Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
util Fix podman stop -t -1 CID 2024-02-26 16:15:10 -05:00