summaryrefslogtreecommitdiffstats
path: root/meta-app-framework
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2020-05-18 17:32:51 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-05-22 19:03:38 +0000
commitf3c1daa3e4cda434588d36826df70210e653ed34 (patch)
treeb38008ee8c252fa4e1cff6536583c9a3a346ccd1 /meta-app-framework
parent9ec6243f8ddb8641bc3251bff18d104bd47b8221 (diff)
Fix nss-localuser postinst scriptlet to run only on the target
Otherwise we fail on do_rootfs now. Bug-AGL: SPEC-3385 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I80ff8c6eeec20d65de8bec770a1950bca3a43002 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24529 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'meta-app-framework')
-rw-r--r--meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb b/meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb
index 62e163f97..de3651dc6 100644
--- a/meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb
+++ b/meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb
@@ -23,7 +23,7 @@ do_install() {
make nssdir=${D}${libdir} install
}
-pkg_postinst_${PN} () {
+pkg_postinst_ontarget_${PN} () {
sed -e '/^hosts:/s/\<localuser\>\s*//' \
-e 's/\(^hosts:\s\s*\)\(.*\)/\1localuser \2/' \
-i $D${sysconfdir}/nsswitch.conf