aboutsummaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2020-05-18 17:33:48 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-05-22 19:03:57 +0000
commit10f6f30fdb15bdcd3707b3fc2e086782dd7aa69f (patch)
tree8907259fc63d5c013ce49bb0125a7341b8da2a9f /meta-app-framework/recipes-core
parentf4114be538c493160cdbccff879f02c1dd5ab68b (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: I47be059b77a79e7f6414ea233f591b4957db4818 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24530 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/recipes-core')
-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 38f37f14c..45861f7cc 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
@@ -25,7 +25,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