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>
This commit is contained in:
parent
99ee41b204
commit
db8e08ca92
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue