From 19ae807f0f1e14ebb2f790d46ca10a6b62b79e31 Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Tue, 29 Sep 2020 15:52:58 +0800
Subject: [PATCH] dnsmasq: avoid init scripts being removed

sm looks for the init script to manage dnsmasq, so
remove sysvinit from DISTRO_FEATURES_BACKFILL_CONSIDERED
to avoid init scripts being removed.

Partial-Bug: 1897685

Change-Id: I39d67e2bed981f50cc9399ef20942fee48c4f22c
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb b/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb
index d4eaef1..5f6ec18 100644
--- a/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb
+++ b/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb
@@ -135,6 +135,8 @@ EOF
     install -m 755 ${WORKDIR}/${DSTSUFX0}/files/init ${D}/${sysconfdir}/init.d/dnsmasq
 }
 
+DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
+
 CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"
 
 RPROVIDES_${PN} += "${PN}-systemd"