Fix nss-localuser postinst scriptlet to run only on the target 30/24530/3
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 18 May 2020 15:33:48 +0000 (17:33 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 22 May 2020 19:03:57 +0000 (19:03 +0000)
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>
meta-app-framework/recipes-core/nss-localuser/nss-localuser_0.1.bb

index 38f37f1..45861f7 100644 (file)
@@ -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