spiegel_podman/pkg/domain/infra/abi
Matthew Heon 259c79963f Improve robustness of podman system reset
Firstly, reset is now managed by the runtime itself as a part of
initialization. This ensures that it can be used even with
runtimes that would otherwise fail to be created - most notably,
when the user has changed a core path
(runroot/root/tmpdir/staticdir).

Secondly, we now attempt a best-effort removal even if the store
completely fails to be configured.

Third, we now hold the alive lock for the entire reset operation.
This ensures that no other Podman process can start while we are
running a system reset, and removes any possibility of a race
where a user tries to create containers or pull images while we
are trying to perform a reset.

[NO NEW TESTS NEEDED] we do not test reset last I checked.

Fixes #9075

Signed-off-by: Matthew Heon <mheon@redhat.com>
2022-06-03 12:54:08 -04:00
..
parse linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
terminal move golang.org/x/crypto/ssh/terminal to golang.org/x/term 2022-04-22 12:40:52 +02:00
archive.go Add API support for NoOverwriteDirNonDir 2022-05-26 16:31:15 -07:00
auto-update.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers.go linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
containers_runlabel.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_runlabel_test.go Fix handling of runlabel IMAGE and NAME 2021-05-05 14:46:18 -04:00
containers_stat.go bump go module to version 4 2022-01-18 12:47:07 +01:00
events.go bump go module to version 4 2022-01-18 12:47:07 +01:00
generate.go move k8s deps into podman 2022-03-15 14:46:29 +01:00
healthcheck.go bump go module to version 4 2022-01-18 12:47:07 +01:00
images.go podman image mount: print pretty table 2022-05-24 16:07:39 +02:00
images_list.go go format previosly touched files 2022-05-24 16:07:39 +02:00
images_test.go pkg/domain/infra/abi/images_test.go: remove commented code 2022-05-24 16:07:39 +02:00
manifest.go replace golint with revive linter 2022-04-22 15:12:33 +02:00
network.go Use containers/common/pkg/util.StringToSlice 2022-05-23 12:16:54 -04:00
play.go k8systemd: run k8s workloads in systemd 2022-05-17 10:18:58 +02:00
play_test.go move k8s deps into podman 2022-03-15 14:46:29 +01:00
pods.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pods_stats.go bump go module to version 4 2022-01-18 12:47:07 +01:00
runtime.go bump go module to version 4 2022-01-18 12:47:07 +01:00
secrets.go bump go module to version 4 2022-01-18 12:47:07 +01:00
system.go Improve robustness of podman system reset 2022-06-03 12:54:08 -04:00
trust.go enable gocritic linter 2022-04-26 18:12:22 +02:00
volumes.go linter: enable nilerr 2022-03-22 13:04:35 +01:00