summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ostree.bbclass
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2017-11-20 15:37:31 +0800
committerMing Liu <liu.ming50@gmail.com>2017-11-20 15:37:31 +0800
commit66c0d3afa91d2683728065a0b00de43ad25c3d6f (patch)
treec489312bdfaf46a14301c67ccdcfcf4c5ac96e80 /classes/image_types_ostree.bbclass
parentdaa6f7201a8450556f526e15a9bd3395eb85ed29 (diff)
downloadmeta-updater-66c0d3afa91d2683728065a0b00de43ad25c3d6f.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/image_types_ostree.bbclass')
-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 8143b67..ba09ab7 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -15,7 +15,7 @@ RAMDISK_EXT_arm ?= ".ext4.gz.u-boot"
15 15
16OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" 16OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
17 17
18export SYSTEMD_USED = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', '', d)}" 18export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}"
19 19
20IMAGE_CMD_ostree () { 20IMAGE_CMD_ostree () {
21 if [ -z "$OSTREE_REPO" ]; then 21 if [ -z "$OSTREE_REPO" ]; then