fm-mgr: fix to avoid useradd error
There is an issue in Yocto that the useradd dependency is not corretly handled: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13904 This fix is a work around to move the useradd option "-G snmpd" to image level and use usermod command instead. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
parent
1c0ef5c749
commit
df987260aa
@ -644,6 +644,7 @@ usermod -a -G sys_protected www
|
||||
usermod -a -G sys_protected nfv
|
||||
usermod -a -G sys_protected patching
|
||||
usermod -a -G sys_protected haproxy
|
||||
usermod -a -G snmpd fm
|
||||
usermod -P root root
|
||||
|
||||
# Extend path variable for sysadmin
|
||||
|
@ -62,6 +62,7 @@ EXTRA_USERS_PARAMS_CONFIG = "\
|
||||
usermod -a -G sys_protected nfv; \
|
||||
usermod -a -G sys_protected patching; \
|
||||
usermod -a -G sys_protected haproxy; \
|
||||
usermod -a -G snmpd fm; \
|
||||
usermod -P root root; \
|
||||
\
|
||||
groupadd -r -g 128 nscd; \
|
||||
|
@ -29,7 +29,7 @@ SYSTEMD_SERVICE_${PN} = "fminit.service"
|
||||
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"
|
||||
USERADD_PARAM_fm-mgr = "-r -g fm -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user