Skip to content

Commit

Permalink
Merge pull request #7346 from rhatdan/systemd
Browse files Browse the repository at this point in the history
Don't limit the size on /run for systemd based containers
  • Loading branch information
openshift-merge-robot authored Aug 19, 2020
2 parents 9babd21 + bd63a25 commit dcdb647
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions cmd/podman/common/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,11 @@ func parseVolumes(volumeFlag, mountFlag, tmpfsFlag []string, addReadOnlyTmpfs bo
if _, ok := unifiedVolumes[dest]; ok {
continue
}
localOpts := options
if dest == "/run" {
localOpts = append(localOpts, "noexec", "size=65536k")
} else {
localOpts = append(localOpts, "exec")
}
unifiedMounts[dest] = spec.Mount{
Destination: dest,
Type: TypeTmpfs,
Source: "tmpfs",
Options: localOpts,
Options: options,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion libpod/container_internal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ func (c *Container) setupSystemd(mounts []spec.Mount, g generate.Generator) erro
Destination: dest,
Type: "tmpfs",
Source: "tmpfs",
Options: append(options, "tmpcopyup", "size=65536k"),
Options: append(options, "tmpcopyup"),
}
g.AddMount(tmpfsMnt)
}
Expand Down

0 comments on commit dcdb647

Please sign in to comment.