mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
useradd-staticids.bbclass: Make --no-user-group have effect
If --no-user-group is specified in USERADD_PARAM_${PN} for a user and
no --gid is specified, then we should not assume that the group name
for the user is the user name.
(From OE-Core rev: 0e5402c433739a416a76df532378533cb25365c7)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c03ea8dddc
commit
b689aa0df3
@@ -107,7 +107,7 @@ def update_useradd_static_config(d):
|
||||
# is used, and we disable the user_group option.
|
||||
#
|
||||
user_group = uaargs.user_group is None or uaargs.user_group is True
|
||||
uaargs.groupname = [uaargs.gid, uaargs.LOGIN][not uaargs.gid or user_group]
|
||||
uaargs.groupname = [uaargs.LOGIN, uaargs.gid][not user_group]
|
||||
uaargs.groupid = [uaargs.gid, uaargs.groupname][not uaargs.gid]
|
||||
uaargs.groupid = [field[3], uaargs.groupid][not field[3]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user