podman/pkg
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
..
annotations fix a number of `godot` issues 2022-03-22 13:04:35 +01:00
api Merge pull request #14393 from jwhonce/wip/archive_todo 2022-05-27 10:43:36 -04:00
auth pkg/auth: drop the TODO 2022-05-25 12:33:34 +02:00
autoupdate auto update: create an event 2022-05-23 14:11:29 +02:00
bindings vendor: bump buildah to v1.26.1-0.20220524184833-5500333c2e06 2022-05-26 21:01:31 +05:30
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Add support for checkpoint image 2022-04-20 18:55:39 +01:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu Add support for checkpoint image 2022-04-20 18:55:39 +01:00
ctime go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
domain Improve robustness of `podman system reset` 2022-06-03 12:54:08 -04:00
env Add more unit tests 2022-05-04 08:29:54 -05:00
errorhandling Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
hooks test: use `T.TempDir` to create temporary test directory 2022-05-05 21:09:41 +08:00
inspect pkg/inspect: remove unused ImageResult type 2022-05-24 16:07:39 +02:00
k8s.io linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
kubeutils remove unneeded k8s code 2022-03-15 14:48:08 +01:00
lookup enable gocritic linter 2022-04-26 18:12:22 +02:00
machine Fix codespell errors 2022-05-25 05:56:29 -04:00
namespaces enable gocritic linter 2022-04-26 18:12:22 +02:00
parallel bump go module to version 4 2022-01-18 12:47:07 +01:00
ps bump go module to version 4 2022-01-18 12:47:07 +01:00
resolvconf Revert "Move each search dns to its own line" 2022-02-02 19:33:21 +01:00
rootless remote: do not join user NS 2022-04-26 15:05:20 +02:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal cmd/podman/common/completion.go: fix FIXMEs 2022-05-24 17:56:37 +02:00
specgen Merge pull request #14308 from n1hility/root-cgroup 2022-05-25 08:53:15 -04:00
specgenutil Podman no-new-privileges format 2022-05-30 15:06:42 +01:00
systemd generate systemd: pods: set exit policy 2022-05-03 15:28:50 +02:00
terminal move golang.org/x/crypto/ssh/terminal to golang.org/x/term 2022-04-22 12:40:52 +02:00
timetype enable gocritic linter 2022-04-26 18:12:22 +02:00
trust Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
util Fix codespell errors 2022-05-25 05:56:29 -04:00