summaryrefslogtreecommitdiff
path: root/meta/classes/extrausers.bbclass
diff options
context:
space:
mode:
authorDavid Vincent <freesilicon@gmail.com>2017-01-16 15:30:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-19 22:45:42 +0000
commit331140e892f84b70bced44a0b5d14f32ec95042e (patch)
tree00df61ae0f252762100a576d469ecbd1679f0b3e /meta/classes/extrausers.bbclass
parent57b05e924bba7b2fff07a34690474c0fa3046865 (diff)
downloadopenembedded-core-331140e892f84b70bced44a0b5d14f32ec95042e.tar.gz
openembedded-core-331140e892f84b70bced44a0b5d14f32ec95042e.tar.bz2
openembedded-core-331140e892f84b70bced44a0b5d14f32ec95042e.zip
extrausers: Use static ids when available
When creating users at the image level using extrausers class, the current behavior is to ignore the status of USERADDEXTENSION. This could lead to undefined behavior when static ids are expected but the system falls back to dynamic ones. Signed-off-by: David Vincent <freesilicon@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/extrausers.bbclass')
-rw-r--r--meta/classes/extrausers.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/extrausers.bbclass b/meta/classes/extrausers.bbclass
index 402fc7d808..7709407b69 100644
--- a/meta/classes/extrausers.bbclass
+++ b/meta/classes/extrausers.bbclass
@@ -63,3 +63,7 @@ set_user_group () {
remaining=`echo $remaining | cut -d ';' -f2-`
done
}
+
+USERADDEXTENSION ?= ""
+
+inherit ${USERADDEXTENSION}