diff mbox series

[2/7] migration-guides/migration-6.1.rst: add USERMOD_PARAMS note

Message ID 20260629-master-updates-1-v1-2-ad9b047f9ff0@bootlin.com
State New
Headers show
Series Cover recent upstream changes | expand

Commit Message

Antonin Godard June 29, 2026, 2:46 p.m. UTC
After commit b8da733ab12c ("useradd.bbclass: Add support for
USERMOD_PARAM") in OE-Core.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/migration-guides/migration-6.1.rst | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/documentation/migration-guides/migration-6.1.rst b/documentation/migration-guides/migration-6.1.rst
index 2e103f0b7..a73c4e34a 100644
--- a/documentation/migration-guides/migration-6.1.rst
+++ b/documentation/migration-guides/migration-6.1.rst
@@ -34,6 +34,32 @@  On the other hand, some earlier distributions are no longer supported:
 
 See :ref:`all supported distributions <system-requirements-supported-distros>`.
 
+.. _ref-migration-6-1-groupmems:
+
+useradd: replace :term:`GROUPMEMS_PARAM` assignments to :term:`USERMOD_PARAMS`
+------------------------------------------------------------------------------
+
+The ``groupmems`` command is removed from the ``shadow`` recipe starting from
+version 4.20. The same functionality provided by ``groupmems`` can be achieved
+with the ``usermod`` command.
+
+Assignments made to the :term:`GROUPMEMS_PARAM` variable can be converted to use
+:term:`USERMOD_PARAMS`, by replacing::
+
+   GROUPMEMS_PARAM:${PN} = "--add user --group group1; \
+                            --add user --group group2"
+
+With::
+
+   USERMOD_PARAM:${PN} = "--append --groups group1 user; \
+                          --append --groups group2 user"
+
+Or written more simply as::
+
+   USERMOD_PARAM:${PN} = "--append --groups group1,group2 user"
+
+See (:oecore_rev:`b8da733ab12c64503a353d5ceb2eb63fed95d851`) for more details.
+
 Removed recipes
 ---------------