summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-02-26 15:49:29 +0200
committerSaul Wold <sgw@linux.intel.com>2014-02-28 11:32:11 +0200
commit6007b955ce990e493a9dbf225290a9c7e133feee (patch)
tree56607fc4b0a0bf4f667570baef1a45e777d02574
parent47d824657acc55e094d5703eed68853f2048c30c (diff)
downloadopenembedded-core-6007b955ce990e493a9dbf225290a9c7e133feee.tar.gz
openembedded-core-6007b955ce990e493a9dbf225290a9c7e133feee.tar.bz2
openembedded-core-6007b955ce990e493a9dbf225290a9c7e133feee.zip
base-passwd: sed installed file instead of original
When we change the ROOT_HOME the sed regex does not match if we are running the do_install() a second time, so sed the installed file and preserve the original so that the sed regex is matched correctly in the original [YOCTO #5765] Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.29.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
index 0205f2e217..59bd413b49 100644
--- a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
+++ b/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
@@ -28,8 +28,8 @@ do_install () {
${D}${mandir}/pl/man8/update-passwd.8
gzip -9 ${D}${mandir}/man8/* ${D}${mandir}/pl/man8/*
install -d -m 755 ${D}${datadir}/base-passwd
- sed -i 's#:/root:#:${ROOT_HOME}:#' ${S}/passwd.master
install -o root -g root -p -m 644 ${S}/passwd.master ${D}${datadir}/base-passwd/
+ sed -i 's#:/root:#:${ROOT_HOME}:#' ${D}${datadir}/base-passwd/passwd.master
install -o root -g root -p -m 644 ${S}/group.master ${D}${datadir}/base-passwd/
install -d -m 755 ${D}${docdir}/${BPN}