[oe-commits] Kang Kai : base-passwd: use configurable root home directory
git at git.openembedded.org
git at git.openembedded.org
Wed Dec 26 11:34:56 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: b5d84482b2762dca0660eb908bcc52aae278d00d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b5d84482b2762dca0660eb908bcc52aae278d00d
Author: Kang Kai <kai.kang at windriver.com>
Date: Tue Dec 18 17:44:02 2012 +0800
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 at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
.../base-passwd/base-passwd-3.5.26/root-home.patch | 16 ----------------
.../recipes-core/base-passwd/base-passwd_3.5.26.bb | 4 ++--
2 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/meta/recipes-core/base-passwd/base-passwd-3.5.26/root-home.patch b/meta/recipes-core/base-passwd/base-passwd-3.5.26/root-home.patch
deleted file mode 100644
index eab77f1..0000000
--- a/meta/recipes-core/base-passwd/base-passwd-3.5.26/root-home.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-we use /home/root instead of /root
-
-Comment added by Kevin Tian <kevin.tian at intel.com>, 2010-07-06
-
-Upstream-Status: Inappropriate [configuration]
-
-Signed-off-by: Scott Garman <scott.a.garman at intel.com>
-
---- base-passwd/passwd.master.orig 2005-07-08 06:26:22.000000000 +0200
-+++ base-passwd/passwd.master 2005-07-08 06:31:58.000000000 +0200
-@@ -1,4 +1,4 @@
--root::0:0:root:/root:/bin/sh
-+root::0:0:root:/home/root:/bin/sh
- daemon:*:1:1:daemon:/usr/sbin:/bin/sh
- bin:*:2:2:bin:/bin:/bin/sh
- sys:*:3:3:sys:/dev:/bin/sh
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 3eae214..2b1dc1c 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/
More information about the Openembedded-commits
mailing list