From b11ddfbc56721ccc2836c6994678acb3e1b5ca74 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Mon, 20 Nov 2017 15:37:31 +0800 Subject: image_types_ostree.bbclass: change the systemd detecting logic It can not determine the init manager is systemd by checking if DISTRO_FEATURES contains 'systemd', change it to check VIRTUAL-RUNTIME_init_manager instead. Signed-off-by: Ming Liu --- classes/image_types_ostree.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 9e3bc6f..777360f 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass @@ -16,7 +16,7 @@ RAMDISK_EXT_arm ?= ".ext4.gz.u-boot" OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" -export SYSTEMD_USED = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', '', d)}" +export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" IMAGE_CMD_ostree () { if [ -z "$OSTREE_REPO" ]; then -- cgit v1.2.3-54-g00ecf