mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-12-14 06:05:21 +01:00
containerd: replace deprecated base_contains
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
0afa6e168e
commit
16a31ef4a8
|
|
@ -59,8 +59,8 @@ do_compile() {
|
|||
|
||||
# Note: disabled for now, since docker is launching containerd
|
||||
# inherit systemd
|
||||
# SYSTEMD_PACKAGES = "${@base_contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
|
||||
# SYSTEMD_SERVICE_${PN} = "${@base_contains('DISTRO_FEATURES','systemd','containerd.service','',d)}"
|
||||
# SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
|
||||
# SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','containerd.service','',d)}"
|
||||
|
||||
do_install() {
|
||||
mkdir -p ${D}/${bindir}
|
||||
|
|
@ -73,7 +73,7 @@ do_install() {
|
|||
ln -sf containerd-shim ${D}/${bindir}/docker-containerd-shim
|
||||
ln -sf containerd-ctr ${D}/${bindir}/docker-containerd-ctr
|
||||
|
||||
if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 644 ${S}/hack/containerd.service ${D}/${systemd_unitdir}/system
|
||||
# adjust from /usr/local/bin to /usr/bin/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user