From: Jaeyoon Jung <[email protected]> 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 <[email protected]> --- Changes in v2: - Remove '_apt' and add 'nogroup' in meta-selftest/files/static-group. --- meta-selftest/files/static-group | 2 +- meta/recipes-devtools/apt/apt_3.0.3.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group index 252fdac67d..3fca4aa5c9 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 7f0a38ab29..d2dfe48e9a 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"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#230191): https://lists.openembedded.org/g/openembedded-core/message/230191 Mute This Topic: https://lists.openembedded.org/mt/117542267/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
