app-emulation/containerd: enable containerd

`docker.service` has a dependency to `containerd.service`:
```
$ systemctl list-dependencies docker.service
docker.service
  containerd.service
  ...
```

If `docker.service` is not started (explicitly or via socket activation)
`containerd.service` won't start.

To ensure a seamless transition to kubernetes-1.24 let's enable by
default `containerd.service`.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
Mathieu Tortuyaux 2022-06-08 15:30:52 +02:00
parent 6ff3675810
commit 250760a51b
2 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,7 @@ src_compile() {
src_install() {
dobin bin/containerd{-shim,-shim-runc-v*,} bin/ctr
systemd_newunit "${FILESDIR}/${PN}-1.0.0.service" "${PN}.service"
systemd_enable_service multi-user.target "${PN}.service"
insinto /usr/share/containerd
doins "${FILESDIR}/config.toml"
doins "${FILESDIR}/config-cgroupfs.toml"

View File

@ -23,7 +23,8 @@
"/lib/systemd/system/containerd.service",
"/lib/systemd/system/docker.service",
"/lib/systemd/system/docker.socket",
"/lib/systemd/system/sockets.target.wants"
"/lib/systemd/system/sockets.target.wants",
"/lib/systemd/system/multi-user.target.wants"
]
}
}