From bed681c4bd2152e5a5825a1218de030a2a74cd4f Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Tue, 28 Apr 2020 23:57:47 +0800 Subject: [PATCH] fm-mgr.inc: inherit useradd to add user and group - inherit useradd bbclass to add user and group 'fm' which is required by stx 3.0 - add dependency on net-snmp-server-snmpd since 'fm' need to be in group 'snmpd' Issue-ID: INF-55 Signed-off-by: Jackie Huang Change-Id: Ie42cccf84726a938a703d35aa57df3855ce6da25 --- meta-stx/recipes-core/stx-fault/fm-mgr.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-stx/recipes-core/stx-fault/fm-mgr.inc b/meta-stx/recipes-core/stx-fault/fm-mgr.inc index 18b3fed..1c07da8 100644 --- a/meta-stx/recipes-core/stx-fault/fm-mgr.inc +++ b/meta-stx/recipes-core/stx-fault/fm-mgr.inc @@ -50,3 +50,11 @@ FILES_fm-mgr = " \ ${sysconfdir}/init.d/fminit \ ${sysconfdir}/logrotate.d/fm.logrotate \ " + +inherit useradd + +USERADD_PACKAGES = "fm-mgr" +USERADD_PARAM_fm-mgr = "-r -g fm -G snmpd -u 195 -d /var/lib/fm -s /sbin/nologin -c 'fm-mgr' fm" +GROUPADD_PARAM_fm-mgr = "-r -g 195 fm" + +RDEPENDS_fm-mgr += "net-snmp-server-snmpd" -- 2.16.6