summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorMatei Valeanu <Matei.Valeanu@enea.com>2021-02-19 19:17:20 +0100
committerAdrian Calianu <Adrian.Calianu@enea.com>2021-02-24 12:01:55 +0100
commit23ed226a4b4b7c1cac2c52e6808631d9f0d6f652 (patch)
treef52d946fd5d8941984ee1aac8aa06853fd1a1b80 /conf
parent79d1957037bc893aa278c025a1c3276b206aead0 (diff)
downloadmeta-el-nfv-access-23ed226a4b4b7c1cac2c52e6808631d9f0d6f652.tar.gz
Set the users and groups staticallyfeature_CPDX-3521
Cannot set USERADD_ERROR_DYNAMIC to error as it breaks the build. We need to be carefull when adding new users/groups, to also add them to files/{groups,passwd} Change-Id: I7ecfa9936af6319ced946e243cbe3bbcd23e8e4c Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/template.atom-c3000-debug/local.conf.sample26
-rw-r--r--conf/template.atom-c3000/local.conf.sample26
-rw-r--r--conf/template.xeon-d-debug/local.conf.sample26
-rw-r--r--conf/template.xeon-d/local.conf.sample26
4 files changed, 104 insertions, 0 deletions
diff --git a/conf/template.atom-c3000-debug/local.conf.sample b/conf/template.atom-c3000-debug/local.conf.sample
index c749b24..60e8955 100644
--- a/conf/template.atom-c3000-debug/local.conf.sample
+++ b/conf/template.atom-c3000-debug/local.conf.sample
@@ -250,3 +250,29 @@ SOTA_MACHINE ?= "${MACHINE}"
250DISTRO_FEATURES_append = " sota" 250DISTRO_FEATURES_append = " sota"
251DISTRO_FEATURES_NATIVE_append = " sota" 251DISTRO_FEATURES_NATIVE_append = " sota"
252INHERIT += " sota" 252INHERIT += " sota"
253
254# Various packages dynamically add users and groups to the system at package
255# install time. For programs that do not care what the uid/gid is of the
256# resulting users/groups, the order of the install will determine the final
257# uid/gid. This can lead to non-deterministic uid/gid values from one build
258# to another. Use the following settings to specify that all user/group adds
259# should be created based on a static passwd/group file.
260#
261# Note, if you enable or disable the useradd-staticids in a configured system,
262# the TMPDIR may contain incorrect uid/gid values. Clearing the TMPDIR
263# will correct this condition.
264#
265# By default the system looks in the BBPATH for files/passwd and files/group
266# the default can be overriden by spefying USERADD_UID/GID_TABLES.
267#
268USERADDEXTENSION = "useradd-staticids"
269USERADD_UID_TABLES = "files/passwd"
270USERADD_GID_TABLES = "files/group"
271#
272# In order to prevent generating a system where a dynamicly assigned uid/gid
273# can exist, you should enable the following setting. This will force the
274# system to error out if the user/group name is not defined in the
275# files/passwd or files/group (or specified replacements.)
276# Unfortunately, setting the variable below breaks the build, so do not set it
277# for now
278# USERADD_ERROR_DYNAMIC = "1"
diff --git a/conf/template.atom-c3000/local.conf.sample b/conf/template.atom-c3000/local.conf.sample
index 8c24e77..b015f43 100644
--- a/conf/template.atom-c3000/local.conf.sample
+++ b/conf/template.atom-c3000/local.conf.sample
@@ -247,3 +247,29 @@ SOTA_MACHINE ?= "${MACHINE}"
247DISTRO_FEATURES_append = " sota" 247DISTRO_FEATURES_append = " sota"
248DISTRO_FEATURES_NATIVE_append = " sota" 248DISTRO_FEATURES_NATIVE_append = " sota"
249INHERIT += " sota" 249INHERIT += " sota"
250
251# Various packages dynamically add users and groups to the system at package
252# install time. For programs that do not care what the uid/gid is of the
253# resulting users/groups, the order of the install will determine the final
254# uid/gid. This can lead to non-deterministic uid/gid values from one build
255# to another. Use the following settings to specify that all user/group adds
256# should be created based on a static passwd/group file.
257#
258# Note, if you enable or disable the useradd-staticids in a configured system,
259# the TMPDIR may contain incorrect uid/gid values. Clearing the TMPDIR
260# will correct this condition.
261#
262# By default the system looks in the BBPATH for files/passwd and files/group
263# the default can be overriden by spefying USERADD_UID/GID_TABLES.
264#
265USERADDEXTENSION = "useradd-staticids"
266USERADD_UID_TABLES = "files/passwd"
267USERADD_GID_TABLES = "files/group"
268#
269# In order to prevent generating a system where a dynamicly assigned uid/gid
270# can exist, you should enable the following setting. This will force the
271# system to error out if the user/group name is not defined in the
272# files/passwd or files/group (or specified replacements.)
273# Unfortunately, setting the variable below breaks the build, so do not set it
274# for now
275# USERADD_ERROR_DYNAMIC = "1"
diff --git a/conf/template.xeon-d-debug/local.conf.sample b/conf/template.xeon-d-debug/local.conf.sample
index e898db6..6474a37 100644
--- a/conf/template.xeon-d-debug/local.conf.sample
+++ b/conf/template.xeon-d-debug/local.conf.sample
@@ -251,3 +251,29 @@ SOTA_MACHINE ?= "${MACHINE}"
251DISTRO_FEATURES_append = " sota" 251DISTRO_FEATURES_append = " sota"
252DISTRO_FEATURES_NATIVE_append = " sota" 252DISTRO_FEATURES_NATIVE_append = " sota"
253INHERIT += " sota" 253INHERIT += " sota"
254
255# Various packages dynamically add users and groups to the system at package
256# install time. For programs that do not care what the uid/gid is of the
257# resulting users/groups, the order of the install will determine the final
258# uid/gid. This can lead to non-deterministic uid/gid values from one build
259# to another. Use the following settings to specify that all user/group adds
260# should be created based on a static passwd/group file.
261#
262# Note, if you enable or disable the useradd-staticids in a configured system,
263# the TMPDIR may contain incorrect uid/gid values. Clearing the TMPDIR
264# will correct this condition.
265#
266# By default the system looks in the BBPATH for files/passwd and files/group
267# the default can be overriden by spefying USERADD_UID/GID_TABLES.
268#
269USERADDEXTENSION = "useradd-staticids"
270USERADD_UID_TABLES = "files/passwd"
271USERADD_GID_TABLES = "files/group"
272#
273# In order to prevent generating a system where a dynamicly assigned uid/gid
274# can exist, you should enable the following setting. This will force the
275# system to error out if the user/group name is not defined in the
276# files/passwd or files/group (or specified replacements.)
277# Unfortunately, setting the variable below breaks the build, so do not set it
278# for now
279# USERADD_ERROR_DYNAMIC = "1"
diff --git a/conf/template.xeon-d/local.conf.sample b/conf/template.xeon-d/local.conf.sample
index 3b1063e..5cfebf5 100644
--- a/conf/template.xeon-d/local.conf.sample
+++ b/conf/template.xeon-d/local.conf.sample
@@ -248,3 +248,29 @@ SOTA_MACHINE ?= "${MACHINE}"
248DISTRO_FEATURES_append = " sota" 248DISTRO_FEATURES_append = " sota"
249DISTRO_FEATURES_NATIVE_append = " sota" 249DISTRO_FEATURES_NATIVE_append = " sota"
250INHERIT += " sota" 250INHERIT += " sota"
251
252# Various packages dynamically add users and groups to the system at package
253# install time. For programs that do not care what the uid/gid is of the
254# resulting users/groups, the order of the install will determine the final
255# uid/gid. This can lead to non-deterministic uid/gid values from one build
256# to another. Use the following settings to specify that all user/group adds
257# should be created based on a static passwd/group file.
258#
259# Note, if you enable or disable the useradd-staticids in a configured system,
260# the TMPDIR may contain incorrect uid/gid values. Clearing the TMPDIR
261# will correct this condition.
262#
263# By default the system looks in the BBPATH for files/passwd and files/group
264# the default can be overriden by spefying USERADD_UID/GID_TABLES.
265#
266USERADDEXTENSION = "useradd-staticids"
267USERADD_UID_TABLES = "files/passwd"
268USERADD_GID_TABLES = "files/group"
269#
270# In order to prevent generating a system where a dynamicly assigned uid/gid
271# can exist, you should enable the following setting. This will force the
272# system to error out if the user/group name is not defined in the
273# files/passwd or files/group (or specified replacements.)
274# Unfortunately, setting the variable below breaks the build, so do not set it
275# for now
276# USERADD_ERROR_DYNAMIC = "1"