summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/rm.go
diff options
context:
space:
mode:
authorRobb Manes <robbmanes@protonmail.com>2021-03-16 12:42:02 -0400
committerMatthew Heon <mheon@redhat.com>2021-03-29 10:55:12 -0400
commit505f43c084a710c36195b8fe979c2ccb673c6e0c (patch)
tree301b3ae7c15609fa06f7b385c3d214e629cbb576 /cmd/podman/pods/rm.go
parent15da607d137a6b219d08b21f305de335f94d34d7 (diff)
downloadpodman-505f43c084a710c36195b8fe979c2ccb673c6e0c.tar.gz
podman-505f43c084a710c36195b8fe979c2ccb673c6e0c.tar.bz2
podman-505f43c084a710c36195b8fe979c2ccb673c6e0c.zip
Add RequiresMountsFor= to systemd generate
It is rare but possible that storage locations for the graphroot and the runroot are not mounted at boot time, and therefore might race when doing container operations. An example we've seen in the wild is that a slow tmpfs mount for the runroot would suddenly mount over /run, causing the container to lose all currently-running data, requiring a system refresh to get it back. This patch adds RequiresMountsFor= to the systemd.unit header to ensure the paths for both the graphroot and runroot are mounted prior to starting any generated unit files. Signed-off-by: Robb Manes <rmanes@redhat.com>
Diffstat (limited to 'cmd/podman/pods/rm.go')
0 files changed, 0 insertions, 0 deletions