summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/build_image.py
diff options
context:
space:
mode:
authorTean Cunningham <tean.cunningham@digi.com>2022-03-01 14:25:39 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-10 16:39:50 +0000
commit2d924cb91f254df06c4f4e4ee03f7998b1286544 (patch)
treef1803bbd73f4cbfd80501687b3b669aa696700e6 /scripts/lib/devtool/build_image.py
parent53f3bf5b78585edded8f0784e04ab0a0357de5f4 (diff)
downloadpoky-2d924cb91f254df06c4f4e4ee03f7998b1286544.tar.gz
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. (From OE-Core rev: 5f53e232f92011e131abff6128fa25812c3744ac) Signed-off-by: Tean Cunningham <tean.cunningham@digi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 65649be6b2196ab964c69605d0306bfc2481da33) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/build_image.py')
0 files changed, 0 insertions, 0 deletions