From b3e5fdfed248a66f1a222cf4d0d125051499858b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 27 Jul 2021 22:00:47 +0200 Subject: [PATCH] group-wheel: Add a recipe to ensure group wheel on our images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-defaultconfig/users/group-wheel.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 recipes-defaultconfig/users/group-wheel.bb diff --git a/recipes-defaultconfig/users/group-wheel.bb b/recipes-defaultconfig/users/group-wheel.bb new file mode 100644 index 0000000..3ff3a77 --- /dev/null +++ b/recipes-defaultconfig/users/group-wheel.bb @@ -0,0 +1,11 @@ +SUMMARY = "Create usergroup wheel for sudo" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +inherit useradd + +USERADD_PACKAGES = "${PN}" +#USERADD_PARAM = "" +GROUPADD_PARAM_${PN} = "--system wheel" + +ALLOW_EMPTY_${PN} = "1"