1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

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:
Pascal Bach
2015-01-21 11:30:25 -08:00
committed by Richard Purdie
parent 99ee41b204
commit db8e08ca92
@@ -75,11 +75,11 @@ python populate_packages_prepend() {
preinst = """#!/bin/sh preinst = """#!/bin/sh
mkdir -p $D${sysconfdir} mkdir -p $D${sysconfdir}
if [ ! -e $D${sysconfdir}/passwd ]; then if [ ! -e $D${sysconfdir}/passwd ]; then
\tcat << EOF > $D${sysconfdir}/passwd \tcat << 'EOF' > $D${sysconfdir}/passwd
""" + passwd + """EOF """ + passwd + """EOF
fi fi
if [ ! -e $D${sysconfdir}/group ]; then if [ ! -e $D${sysconfdir}/group ]; then
\tcat << EOF > $D${sysconfdir}/group \tcat << 'EOF' > $D${sysconfdir}/group
""" + group + """EOF """ + group + """EOF
fi fi
""" """