Merge pull request #3297 from rhatdan/systemd

Accidently removed /run/lock from systemd mounts
This commit is contained in:
OpenShift Merge Robot 2019-06-17 21:26:33 +02:00 committed by GitHub
commit bce4a93575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -424,7 +424,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) {
// It also expects to be able to write to /sys/fs/cgroup/systemd and /var/log/journal
func (c *Container) setupSystemd(mounts []spec.Mount, g generate.Generator) error {
options := []string{"rw", "rprivate", "noexec", "nosuid", "nodev"}
for _, dest := range []string{"/run"} {
for _, dest := range []string{"/run", "/run/lock"} {
if MountExists(mounts, dest) {
continue
}