Package: podman
Version: 2.0.6+dfsg1-1
Severity: normal
Tags: patch

I was testing some things that I usually run against docker with podman,
and discovered that --init does not work:

$ docker run --init debian echo Hello world
Hello world
$ podman run --init debian echo Hello world
Error: container-init binary not found on the host: stat 
/usr/libexec/podman/catatonit: no such file or directory

I found https://github.com/containers/podman/issues/4159 upstream

I did a quick packaging of catatonit, installed it, and with the
attached patch, I can make it work. I have just submitted an ITP for
catatonit.

$ podman run --init debian echo Hello world
Hello world

Should I go ahead and upload catatonit? Or would you rather point to a
different init by default? It seems we have quite some of them in the
archive already (tini, dumb-init, ...)?


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64, i386

Kernel: Linux 5.8.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages podman depends on:
ii  conmon                           2.0.20-1
ii  containernetworking-plugins      0.8.6-2
ii  golang-github-containers-common  0.14.10+ds1-1
ii  init-system-helpers              1.58
ii  libc6                            2.31-3
ii  libdevmapper1.02.1               2:1.02.171-3
ii  libgpgme11                       1.14.0-1
ii  libseccomp2                      2.4.4-1
ii  runc                             1.0.0~rc92+dfsg1-5

Versions of packages podman recommends:
ii  buildah         1.15.2-1
ii  catatonit       0.1.5-2.ge27d77f
ii  fuse-overlayfs  1.1.2-1
ii  slirp4netns     1.0.1-1
ii  tini            0.19.0-1
ii  uidmap          1:4.8.1-1

Versions of packages podman suggests:
pn  containers-storage  <none>

-- no debconf information
From cc06f4d235ec8c45e56304b8fd5e8e08981bb6b1 Mon Sep 17 00:00:00 2001
From: Antonio Terceiro <terce...@debian.org>
Date: Wed, 7 Oct 2020 18:20:05 -0300
Subject: [PATCH] Use catatonit with --init by default

---
 debian/control      | 2 +-
 debian/podman.links | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 debian/podman.links

diff --git a/debian/control b/debian/control
index c2c758ef2..1a1a4bb2b 100644
--- a/debian/control
+++ b/debian/control
@@ -114,7 +114,7 @@ Recommends: ${misc:Recommends}
     ,buildah (>= 1.10.1-6~)
     ,fuse-overlayfs (>= 1.0.0~)
     ,slirp4netns (>= 0.4.1~)
-    ,tini | dumb-init
+    ,catatonit | tini | dumb-init
     ,uidmap
 Suggests: ${misc:Suggests}
     ,containers-storage
diff --git a/debian/podman.links b/debian/podman.links
new file mode 100644
index 000000000..b8d6e9761
--- /dev/null
+++ b/debian/podman.links
@@ -0,0 +1 @@
+/usr/bin/catatonit        /usr/libexec/podman/catatonit
-- 
2.28.0

Attachment: signature.asc
Description: PGP signature

Reply via email to