useradd.bbclass: add missing functions to preinst
cover useradd.bbclass: add missing functions to preinst
From: Chen Qi <[email protected]>
The following changes since commit 16d522bcd1f1b7741577fa31fab7e2129da0cae9:
maintainers.inc: reassign maintainers, remove obsolete recipes (2013-08-12 13:13:05 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/useradd-add-missing-funcs
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/useradd-add-missing-funcs
Chen Qi (1):
useradd.bbclass: add missing functions to preinst
meta/classes/useradd.bbclass | 3 +++ 1 file changed, 3 insertions(+)
Signature · 1 line
1.7.9.5
PATCH 1/1 useradd.bbclass: add missing functions to preinst
From: Chen Qi <[email protected]>
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.
--- meta/classes/useradd.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/useradd.bbclass +3 -0
@@ -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)
Signature · 1 line
1.7.9.5