summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-passwd
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-02-21 14:22:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-22 06:09:23 -0800
commit5e3bbb652041954c02e1f8642c9f9874b1741a02 (patch)
treee56715ea4e3fa1ebaf97d76d3ea573d0e2bbd2c2 /meta/recipes-core/base-passwd
parente723d3b234b2f5ed9871f032b1fb30f646034f6c (diff)
downloadpoky-5e3bbb652041954c02e1f8642c9f9874b1741a02.tar.gz
base-passwd.preinst:fix creating passwd and group error
Create files `passwd' and `group' in `$D${sysconfdir}', if `$D${sysconfdir}' does not exist, there is an error: ... cannot create $D${sysconfdir}/passwd: Directory nonexistent cannot create $D${sysconfdir}/group: Directory nonexistent ... Attampt to create dir before file creation. [YOCTO #3917] (From OE-Core rev: aea1d6c29e0c3f7c854045057d8bb389a1609b2b) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/base-passwd')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.26.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.26.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.26.bb
index 2b1dc1c5b7..dd310af198 100644
--- a/meta/recipes-core/base-passwd/base-passwd_3.5.26.bb
+++ b/meta/recipes-core/base-passwd/base-passwd_3.5.26.bb
@@ -1,7 +1,7 @@
1SUMMARY = "Base system master password/group files." 1SUMMARY = "Base system master password/group files."
2DESCRIPTION = "The master copies of the user database files (/etc/passwd and /etc/group). The update-passwd tool is also provided to keep the system databases synchronized with these master files." 2DESCRIPTION = "The master copies of the user database files (/etc/passwd and /etc/group). The update-passwd tool is also provided to keep the system databases synchronized with these master files."
3SECTION = "base" 3SECTION = "base"
4PR = "r0" 4PR = "r1"
5LICENSE = "GPLv2+" 5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" 6LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
7 7
@@ -64,6 +64,7 @@ python populate_packages_prepend() {
64 f.close() 64 f.close()
65 65
66 preinst = """#!/bin/sh 66 preinst = """#!/bin/sh
67mkdir -p $D${sysconfdir}
67if [ ! -e $D${sysconfdir}/passwd ]; then 68if [ ! -e $D${sysconfdir}/passwd ]; then
68\tcat << EOF > $D${sysconfdir}/passwd 69\tcat << EOF > $D${sysconfdir}/passwd
69""" + passwd + """EOF 70""" + passwd + """EOF