mirror of https://github.com/containers/podman.git
Merge pull request #3297 from rhatdan/systemd
Accidently removed /run/lock from systemd mounts
This commit is contained in:
commit
bce4a93575
|
|
@ -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
|
// 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 {
|
func (c *Container) setupSystemd(mounts []spec.Mount, g generate.Generator) error {
|
||||||
options := []string{"rw", "rprivate", "noexec", "nosuid", "nodev"}
|
options := []string{"rw", "rprivate", "noexec", "nosuid", "nodev"}
|
||||||
for _, dest := range []string{"/run"} {
|
for _, dest := range []string{"/run", "/run/lock"} {
|
||||||
if MountExists(mounts, dest) {
|
if MountExists(mounts, dest) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue