aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-passwd/base-passwd_3.5.26.bb
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2012-12-18 17:44:02 +0800
committerSaul Wold <sgw@linux.intel.com>2012-12-25 14:00:21 -0800
commitb5d84482b2762dca0660eb908bcc52aae278d00d (patch)
tree626979e5561453d911373d69bc3f2ff47b63cd6e /meta/recipes-core/base-passwd/base-passwd_3.5.26.bb
parent341da5b6e46e0884d60e9462d1306d525fa99b94 (diff)
downloadopenembedded-core-contrib-b5d84482b2762dca0660eb908bcc52aae278d00d.tar.gz
openembedded-core-contrib-b5d84482b2762dca0660eb908bcc52aae278d00d.tar.bz2
openembedded-core-contrib-b5d84482b2762dca0660eb908bcc52aae278d00d.zip
base-passwd: use configurable root home directory
Use configurable variable ROOT_HOME as root home directory. Drop root-home.patch because it is not needed any more. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/base-passwd/base-passwd_3.5.26.bb')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.26.bb4
1 files changed, 2 insertions, 2 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 3eae214157..2b1dc1c5b7 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
@@ -6,8 +6,7 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
SRC_URI = "${DEBIAN_MIRROR}/main/b/base-passwd/base-passwd_${PV}.tar.gz \
- file://nobash.patch \
- file://root-home.patch"
+ file://nobash.patch"
SRC_URI[md5sum] = "74245e5c21dc74d9675c77cd8dfa02e6"
SRC_URI[sha256sum] = "258a78317aa563143d10375c6e1e63a60898e503887f00fffd70b6b297c1b429"
@@ -25,6 +24,7 @@ do_install () {
${D}${mandir}/pl/man8/update-passwd.8
gzip -9 ${D}${mandir}/man8/* ${D}${mandir}/pl/man8/*
install -d -m 755 ${D}${datadir}/base-passwd
+ sed -i 's#:/root:#:${ROOT_HOME}:#' ${S}/passwd.master
install -o root -g root -p -m 644 ${S}/passwd.master ${D}${datadir}/base-passwd/
install -o root -g root -p -m 644 ${S}/group.master ${D}${datadir}/base-passwd/