]> code.ossystems Code Review - openembedded-core.git/commit
useradd-staticids.bbclass: Support recipes specifying static IDs
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 15 Mar 2017 00:27:13 +0000 (01:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Mar 2017 22:43:00 +0000 (22:43 +0000)
commite744fac05fc5cc19cabc59c1e79ff4c1b3ee396d
tree61b465b88eb500e7bab4bf915c554386fc06c4aa
parent9377d16751aeff0a913e754d711bca6e4e4d9df1
useradd-staticids.bbclass: Support recipes specifying static IDs

If this bbclass is used and a recipe specifies a static ID for a
user/group as part of the USERADD_PARAM_${PN} or GROUPADD_PARAM_${PN},
the build would fail with and error like this if there was no
corresponding ID in the passwd/group files specified via
USERADD_UID_TABLES/USERADD_GID_TABLES:

  ERROR: meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb:
  meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb inherits
  useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or
  GROUPMEMS_PARAM for package postgresql

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/useradd-staticids.bbclass