Skip to contentSkip to conversation

Fix groupname gid change warning

PATCH New JD Schroeder 1 participant 1 message Aug 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix groupname gid change warning

This patch fixes warnings when useradd-staticids.bbclass is used and USERADD_PARAM is used to add the user to a group that has not been explicitly created yet. By adding the GROUPADD_PARAM for the new group being used the warnings for changing the gid from GID-OLD to GID-NEW is eliminated.

Warnings fixed:
cyrus-sasl: Changing groupname mail's gid from (WXYZ) to (JKLM), verify configuration files!
radvd: Changing groupname nogroup's gid from (WXYZ) to (JKLM), verify configuration files!

---
 meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb | 1 +
 meta-networking/recipes-daemons/radvd/radvd.inc                 | 1 +
 2 files changed, 2 insertions(+)
meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb +1 -0
index e344733ef..3fc1b0fd1 100644
@@ -73,6 +73,7 @@ do_install:append() {
 }
 
 USERADD_PACKAGES = "${PN}-bin"
+GROUPADD_PARAM:${PN}-bin = "--system mail"
 USERADD_PARAM:${PN}-bin = "--system --home=/var/spool/mail -g mail cyrus"
 
 SYSTEMD_PACKAGES = "${PN}-bin"
meta-networking/recipes-daemons/radvd/radvd.inc +1 -0
index 2afaa4841..219d88f49 100644
@@ -58,6 +58,7 @@ do_install:append () {
 }
 
 USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM:${PN} = "--system nogroup"
 USERADD_PARAM:${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
 
 pkg_postinst:${PN} () {

--
2.37.0