From: Jaeyoon Jung Date: Fri, 30 Jan 2026 10:09:15 +0000 (+0900) Subject: apt: Set gid to nogroup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31eb31c59873783a4282602391fab85b16e33e0d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git apt: Set gid to nogroup Without --no-user-group, it tries to assign "_apt" gid which ends up with an error as shown below when using static gid values and "_apt" is not defined in USERADD_GID_TABLES. | apt was skipped: Recipe apt, package apt: normal groupname "_apt" does not have a static ID defined. Conventionally "_apt" does not have its own gid but rather uses "nogroup". For that reason '_apt' gid is also removed from meta-selftest/files/static-group. Signed-off-by: Jaeyoon Jung Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group index 252fdac67d8..3fca4aa5c98 100644 --- a/meta-selftest/files/static-group +++ b/meta-selftest/files/static-group @@ -19,7 +19,6 @@ tracing:x:519: pulse:x:520: bind:x:521: builder:x:522: -_apt:x:523: weston-launch:x:524: weston:x:525: wayland:x:526: @@ -29,3 +28,4 @@ ptest:x:529: xuser:x:530: seat:x:531: audio:x:532: +nogroup:x:65534: diff --git a/meta/recipes-devtools/apt/apt_3.0.3.bb b/meta/recipes-devtools/apt/apt_3.0.3.bb index 7f0a38ab293..d2dfe48e9a8 100644 --- a/meta/recipes-devtools/apt/apt_3.0.3.bb +++ b/meta/recipes-devtools/apt/apt_3.0.3.bb @@ -38,7 +38,7 @@ inherit cmake perlnative bash-completion useradd # User is added to allow apt to drop privs, will runtime warn without USERADD_PACKAGES = "${PN}" -USERADD_PARAM:${PN} = "--system --home /nonexistent --no-create-home _apt" +USERADD_PARAM:${PN} = "--system --home /nonexistent --no-create-home --no-user-group --gid nogroup _apt" BBCLASSEXTEND = "native nativesdk"