commit 614c47a4075a1a6d6d45da6d54704b56ea69cd7a Author: Jackie Huang Date: Tue Sep 29 16:07:37 2020 +0800 net-snmp: avoid init scripts being removed sm looks for the init script to manage snmpd, so remove sysvinit from DISTRO_FEATURES_BACKFILL_CONSIDERED to avoid init scripts being removed. And the init script snmpd should be packaged in PN-server-snmpd, so fix the FILE definition as well. Partial-Bug: 1897685 Change-Id: I612e6eda0e1a4f942d11e90bec1307db1fd64f60 Signed-off-by: Jackie Huang diff --git a/meta-stx-integ/recipes-protocols/net-snmp/net-snmp_%.bbappend b/meta-stx-integ/recipes-protocols/net-snmp/net-snmp_%.bbappend index e6fe301..6a9663e 100644 --- a/meta-stx-integ/recipes-protocols/net-snmp/net-snmp_%.bbappend +++ b/meta-stx-integ/recipes-protocols/net-snmp/net-snmp_%.bbappend @@ -48,4 +48,6 @@ do_install_append () { chmod 640 ${D}/${sysconfdir}/snmp/snmptrapd.conf } -FILES_${PN}_append = " ${sysconfdir}/rc.d/init.d/snmpd" +DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit" + +FILES_${PN}-server-snmpd_append = " ${sysconfdir}/rc.d/init.d/snmpd"