diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-10-30 17:21:46 -0400 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-11-05 17:38:46 +0000 |
commit | db2efee31d3c871a1e5f4fe665e0f3daa01a27f8 (patch) | |
tree | ed0481e8fa6a6f70f058232e92b940793cc50115 /meta-agl-core/recipes-config/agl-users/agl-users.inc | |
parent | a3bca90049cb704e83f62c81d7d328fd4b15ce8c (diff) |
agl-users: factor out reusable include file
Refactor the recipe to put the actual useradd configuration into an
include file. This will allow other recipes that need to use the
agl-driver user for file ownership to pull that in as opposed to
duplicating the configuration and risking mismatches.
Bug-AGL: SPEC-4952
Change-Id: Ica16a13a3750722c6d22b14944898f7b289e4bbe
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/29340
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-core/recipes-config/agl-users/agl-users.inc')
-rw-r--r-- | meta-agl-core/recipes-config/agl-users/agl-users.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-agl-core/recipes-config/agl-users/agl-users.inc b/meta-agl-core/recipes-config/agl-users/agl-users.inc new file mode 100644 index 000000000..428af3806 --- /dev/null +++ b/meta-agl-core/recipes-config/agl-users/agl-users.inc @@ -0,0 +1,14 @@ +inherit useradd + +USERADD_PACKAGES = "${PN}" +USERADDEXTENSION = "useradd-staticids" + +GROUPADD_PARAM:${PN} = "\ + --system video ; \ + --system pipewire ; \ + -g 1001 agl-driver ; \ +" + +USERADD_PARAM:${PN} = "\ + -g 1001 -u 1001 -G video,pipewire -o -d /home/agl-driver -m -K PASS_MAX_DAYS=-1 agl-driver ; \ +" |