]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
apt: Set gid to nogroup
authorJaeyoon Jung <jaeyoon.jung@lge.com>
Fri, 30 Jan 2026 10:09:15 +0000 (19:09 +0900)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Feb 2026 09:54:30 +0000 (09:54 +0000)
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 <jaeyoon.jung@lge.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/files/static-group
meta/recipes-devtools/apt/apt_3.0.3.bb

index 252fdac67d875d2be5218f8759a046540358de89..3fca4aa5c98aa4056b775ab91b641c3456bfec7a 100644 (file)
@@ -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:
index 7f0a38ab2933fce71c6a2c3eeb90bfe8c2274e6d..d2dfe48e9a8d7091af4a68602c13d1eb01a0562e 100644 (file)
@@ -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"