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

index 62e163f..de3651d 100644 (file)
@@ -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