summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-16 18:16:34 +0100
committerGitHub <noreply@github.com>2021-11-16 18:16:34 +0100
commit197ebe8b5e6c10db786ad22692536e395c911b87 (patch)
treea75c897b014fede28374b62d1bacc81957d3c70d /pkg/specgen/generate
parentf031bd23c6f5f790dde383d542c940bfe2dfaadd (diff)
parentc8790bfbbb845450608adc7a0a03b77979165f42 (diff)
downloadpodman-197ebe8b5e6c10db786ad22692536e395c911b87.tar.gz
podman-197ebe8b5e6c10db786ad22692536e395c911b87.tar.bz2
podman-197ebe8b5e6c10db786ad22692536e395c911b87.zip
Merge pull request #12218 from vrothberg/pause-catatonit
infra container: replace pause with catatonit
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r--pkg/specgen/generate/pod_create.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/pkg/specgen/generate/pod_create.go b/pkg/specgen/generate/pod_create.go
index bfd81739a..72dd249e7 100644
--- a/pkg/specgen/generate/pod_create.go
+++ b/pkg/specgen/generate/pod_create.go
@@ -29,19 +29,16 @@ func buildPauseImage(rt *libpod.Runtime, rtConfig *config.Config) (string, error
return imageName, nil
}
- // NOTE: Having the pause binary in its own directory keeps the door
- // open for replacing the image building with using an overlay root FS.
- // The latter turned out to be complex and error prone (see #11956) but
- // we may be able to come up with a proper solution at a later point in
- // time.
- pausePath, err := rtConfig.FindHelperBinary("pause/pause", false)
+ // Also look into the path as some distributions install catatonit in
+ // /usr/bin.
+ catatonitPath, err := rtConfig.FindHelperBinary("catatonit", true)
if err != nil {
return "", fmt.Errorf("finding pause binary: %w", err)
}
buildContent := fmt.Sprintf(`FROM scratch
-COPY %s /pause
-ENTRYPOINT ["/pause"]`, pausePath)
+COPY %s /catatonit
+ENTRYPOINT ["/catatonit", "-P"]`, catatonitPath)
tmpF, err := ioutil.TempFile("", "pause.containerfile")
if err != nil {