]> code.ossystems Code Review - openembedded-core.git/commit
rootfs-postcommands: amend systemd_create_users add user to group check
authorTean Cunningham <tean.cunningham@digi.com>
Tue, 1 Mar 2022 21:25:39 +0000 (14:25 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2022 18:41:52 +0000 (18:41 +0000)
commit65649be6b2196ab964c69605d0306bfc2481da33
treef7eb75c7956513e374c414039a0b4d609822a4f7
parent724fc8047cae6ed6197d7deca887b1594871c90e
rootfs-postcommands: amend systemd_create_users add user to group check

Currently when adding a user to a group ('m' type), the conditional
check to only create a user/group if it does not exist always resolves
to true. This causes a build exit failure if the user and/or group
defined in the sysusers configuration file were already created prior to
the execution of systemd_create_users().

This logic has been updated to instead fail silently (consistent with
'u' and 'g' type). Additionally, if a user doesn't exist it will be
created without the default group.

Signed-off-by: Tean Cunningham <tean.cunningham@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs-postcommands.bbclass