summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-08-16 10:10:12 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-20 15:31:25 +0100
commit1cf5a36aa9f0b9e69b289b09f3d3f519a62d3c17 (patch)
treeebad9795c1887aaa6e77befa3fff8251bf8c8fe2 /meta
parent41696b2e8bd32c69a248455b43420b07e984ca5f (diff)
downloadpoky-1cf5a36aa9f0b9e69b289b09f3d3f519a62d3c17.tar.gz
useradd.bbclass: add missing functions to preinst
The preinst scripts are calling bbnote, bbwarn and bbfatal functions, but these functions are not written to the preinst scripts. This patch writes these missing functions to the preinst scripts to avoid the 'not found' errors. (From OE-Core rev: ed45f00ef76d189611cda2cb922fa7eb8f86d9cc) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/useradd.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 21daae8d77..eabfc5d397 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -168,6 +168,9 @@ fakeroot python populate_packages_prepend () {
168 preinst = d.getVar('pkg_preinst_%s' % pkg, True) or d.getVar('pkg_preinst', True) 168 preinst = d.getVar('pkg_preinst_%s' % pkg, True) or d.getVar('pkg_preinst', True)
169 if not preinst: 169 if not preinst:
170 preinst = '#!/bin/sh\n' 170 preinst = '#!/bin/sh\n'
171 preinst += 'bbnote () {\n%s}\n' % d.getVar('bbnote', True)
172 preinst += 'bbwarn () {\n%s}\n' % d.getVar('bbwarn', True)
173 preinst += 'bbfatal () {\n%s}\n' % d.getVar('bbfatal', True)
171 preinst += 'perform_groupadd () {\n%s}\n' % d.getVar('perform_groupadd', True) 174 preinst += 'perform_groupadd () {\n%s}\n' % d.getVar('perform_groupadd', True)
172 preinst += 'perform_useradd () {\n%s}\n' % d.getVar('perform_useradd', True) 175 preinst += 'perform_useradd () {\n%s}\n' % d.getVar('perform_useradd', True)
173 preinst += 'perform_groupmems () {\n%s}\n' % d.getVar('perform_groupmems', True) 176 preinst += 'perform_groupmems () {\n%s}\n' % d.getVar('perform_groupmems', True)