summaryrefslogtreecommitdiff
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@siemens.com>2015-01-21 11:30:25 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-28 21:22:22 +0000
commit620b100f54c379661a8c48a1eb78ed94cd3b7a49 (patch)
tree48481f44cb3b60e002a356b0a04b1ff7193a9d5a /meta/recipes-core
parent1e21da3877f1d3ce842ae012ac606be363b080c3 (diff)
downloadopenembedded-core-620b100f54c379661a8c48a1eb78ed94cd3b7a49.tar.gz
openembedded-core-620b100f54c379661a8c48a1eb78ed94cd3b7a49.tar.bz2
openembedded-core-620b100f54c379661a8c48a1eb78ed94cd3b7a49.zip
base-passwd: Don't replace $ variables in passwd and group files
This allows the usage of "$type$salt$encrypted_password" passwords in the passwd file. Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.29.bb4
1 files changed, 2 insertions, 2 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 ec8f2afb22..a35ea9bd08 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
@@ -75,11 +75,11 @@ python populate_packages_prepend() {
preinst = """#!/bin/sh
mkdir -p $D${sysconfdir}
if [ ! -e $D${sysconfdir}/passwd ]; then
-\tcat << EOF > $D${sysconfdir}/passwd
+\tcat << 'EOF' > $D${sysconfdir}/passwd
""" + passwd + """EOF
fi
if [ ! -e $D${sysconfdir}/group ]; then
-\tcat << EOF > $D${sysconfdir}/group
+\tcat << 'EOF' > $D${sysconfdir}/group
""" + group + """EOF
fi
"""