]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
useradd.bbclass: drop groupmems from sysroot setup
authorJaipaul Cheernam <jaipaul.cheernam@est.tech>
Mon, 3 Aug 2026 05:18:32 +0000 (07:18 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Aug 2026 17:04:08 +0000 (18:04 +0100)
groupmems was removed from shadow 4.20.0 [1]. The useradd class never
actually called the binary - perform_groupmems already uses usermod.
Drop it from the sysroot loop to silence the warnings.

[1] https://github.com/shadow-maint/shadow/pull/1601

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd.bbclass

index d6e1df2bd62029826cac59249166ab03a4d4688c..e9e835e1a266eddb657342612603782b3c9e10f3 100644 (file)
@@ -131,10 +131,6 @@ usermod_sysroot() {
        common_useradd_sysroot usermod
 }
 
-groupmems_sysroot() {
-       common_useradd_sysroot groupmems
-}
-
 common_useradd_sysroot() {
        # Pseudo may (do_prepare_recipe_sysroot) or may not (do_populate_sysroot_setscene) be running 
        # at this point so we're explicit about the environment so pseudo can load if 
@@ -168,7 +164,6 @@ common_useradd_sysroot() {
                groupadd) GROUPADD_PARAM="${@get_all_cmd_params(d, 'groupadd')}";;
                useradd) USERADD_PARAM="${@get_all_cmd_params(d, 'useradd')}";;
                usermod) USERMOD_PARAM="${@get_all_cmd_params(d, 'usermod')}";;
-               groupmems) GROUPMEMS_PARAM="${@get_all_cmd_params(d, 'groupmems')}";;
        esac
 
        # Tell the system to use the environment vars
@@ -184,7 +179,7 @@ common_useradd_sysroot() {
 EXTRA_STAGING_FIXMES += "PSEUDO_SYSROOT PSEUDO_LOCALSTATEDIR LOGFIFO"
 
 python useradd_sysroot_sstate() {
-    for cmd, sort_prefix in [("groupadd", "01"), ("useradd", "02"), ("usermod", "03"), ("groupmems", "04")]:
+    for cmd, sort_prefix in [("groupadd", "01"), ("useradd", "02"), ("usermod", "03")]:
         scriptfile = None
         task = d.getVar("BB_CURRENTTASK")
         if task == "package_setscene":