[OE-core] [PATCH 2/2] shadow.inc: run postinst only for target

Martin Jansa martin.jansa at gmail.com
Tue Mar 20 12:10:17 UTC 2018


* fails for nativesdk-shadow with:
  pwconv: /etc/passwd.29063: No such file or directory
  pwconv: cannot lock /etc/passwd; try again later.

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta/recipes-extended/shadow/shadow.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index cc189649b2..48a3be87e6 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -190,7 +190,7 @@ ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1"
 ALTERNATIVE_LINK_NAME[nologin.8] = "${mandir}/man8/nologin.8"
 
 PACKAGE_WRITE_DEPS += "shadow-native"
-pkg_postinst_${PN} () {
+pkg_postinst_${PN}_class-target () {
 	if [ "x$D" != "x" ]; then
 	  rootarg="--root $D"
 	else
-- 
2.15.1




More information about the Openembedded-core mailing list