diff options
author | Pascal Bach <pascal.bach@siemens.com> | 2015-01-21 11:30:25 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 15:36:47 +0000 |
commit | db8e08ca921367c007acbba870d4e9ca0841c2cd (patch) | |
tree | e150a4f4aafe46b9a7c2f76f375592c99db72be4 /meta/recipes-core | |
parent | 99ee41b204e1abd99ef345293d53b01cae7eb932 (diff) | |
download | poky-db8e08ca921367c007acbba870d4e9ca0841c2cd.tar.gz |
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.
(From OE-Core rev: 620b100f54c379661a8c48a1eb78ed94cd3b7a49)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/base-passwd/base-passwd_3.5.29.bb | 4 |
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() { | |||
75 | preinst = """#!/bin/sh | 75 | preinst = """#!/bin/sh |
76 | mkdir -p $D${sysconfdir} | 76 | mkdir -p $D${sysconfdir} |
77 | if [ ! -e $D${sysconfdir}/passwd ]; then | 77 | if [ ! -e $D${sysconfdir}/passwd ]; then |
78 | \tcat << EOF > $D${sysconfdir}/passwd | 78 | \tcat << 'EOF' > $D${sysconfdir}/passwd |
79 | """ + passwd + """EOF | 79 | """ + passwd + """EOF |
80 | fi | 80 | fi |
81 | if [ ! -e $D${sysconfdir}/group ]; then | 81 | if [ ! -e $D${sysconfdir}/group ]; then |
82 | \tcat << EOF > $D${sysconfdir}/group | 82 | \tcat << 'EOF' > $D${sysconfdir}/group |
83 | """ + group + """EOF | 83 | """ + group + """EOF |
84 | fi | 84 | fi |
85 | """ | 85 | """ |