podman/cmd
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
..
podman Improve robustness of `podman system reset` 2022-06-03 12:54:08 -04:00
podman-mac-helper Run codespell to cleanup typos 2022-03-25 15:34:41 -04:00
rootlessport Use simulated dual-stack binds when using WSL 2022-04-29 17:03:45 -05:00
winpath Add podman rm --depend 2022-01-11 14:33:54 -05:00