diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-08-16 10:10:12 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-20 07:09:06 -0700 |
commit | ed45f00ef76d189611cda2cb922fa7eb8f86d9cc (patch) | |
tree | f81a248dfb694b4eb4a83ff7772a6040f66d2025 /meta | |
parent | 5487373672c55d87fbe90117c802d26d99099d03 (diff) | |
download | openembedded-core-ed45f00ef76d189611cda2cb922fa7eb8f86d9cc.tar.gz openembedded-core-ed45f00ef76d189611cda2cb922fa7eb8f86d9cc.tar.bz2 openembedded-core-ed45f00ef76d189611cda2cb922fa7eb8f86d9cc.zip |
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/useradd.bbclass | 3 |
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 () { preinst = d.getVar('pkg_preinst_%s' % pkg, True) or d.getVar('pkg_preinst', True) if not preinst: preinst = '#!/bin/sh\n' + preinst += 'bbnote () {\n%s}\n' % d.getVar('bbnote', True) + preinst += 'bbwarn () {\n%s}\n' % d.getVar('bbwarn', True) + preinst += 'bbfatal () {\n%s}\n' % d.getVar('bbfatal', True) preinst += 'perform_groupadd () {\n%s}\n' % d.getVar('perform_groupadd', True) preinst += 'perform_useradd () {\n%s}\n' % d.getVar('perform_useradd', True) preinst += 'perform_groupmems () {\n%s}\n' % d.getVar('perform_groupmems', True) |