From 10f6f30fdb15bdcd3707b3fc2e086782dd7aa69f Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Mon, 18 May 2020 17:33:48 +0200 Subject: Fix nss-localuser postinst scriptlet to run only on the target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we fail on do_rootfs now. Bug-AGL: SPEC-3385 Signed-off-by: Jan-Simon Möller Change-Id: I47be059b77a79e7f6414ea233f591b4957db4818 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24530 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Scott Murray --- meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-app-framework') 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/\\s*//' \ -e 's/\(^hosts:\s\s*\)\(.*\)/\1localuser \2/' \ -i $D${sysconfdir}/nsswitch.conf -- cgit 1.2.3-korg