summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2017-11-20 15:37:31 +0800
committerLaurent Bonnans <laurent.bonnans@here.com>2018-05-15 10:48:54 +0200
commitb11ddfbc56721ccc2836c6994678acb3e1b5ca74 (patch)
tree213a8e33c8bb5cd654046d22b3ac49a1e00578a5 /classes
parent41c2df71f443047ea6d6adb988f17eb493f10f89 (diff)
downloadmeta-updater-b11ddfbc56721ccc2836c6994678acb3e1b5ca74.tar.gz
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 <liu.ming50@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass2
1 files changed, 1 insertions, 1 deletions
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"
16 16
17OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" 17OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
18 18
19export SYSTEMD_USED = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', '', d)}" 19export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}"
20 20
21IMAGE_CMD_ostree () { 21IMAGE_CMD_ostree () {
22 if [ -z "$OSTREE_REPO" ]; then 22 if [ -z "$OSTREE_REPO" ]; then