Patchwork systemd: honor ROOT_HOME

login
register
mail settings
Submitter Enrico Scholz
Date Jan. 28, 2013, 7:24 p.m.
Message ID <1359401078-13599-1-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/43565/
State Accepted
Commit b5392a43eee001d2c850a77b2183f7a370d5251c
Headers show

Comments

Enrico Scholz - Jan. 28, 2013, 7:24 p.m.
Use ${ROOT_HOME} which was added in commit
a78cd0b3a69b829327cea035321051ab11cba70f.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 meta/recipes-core/systemd/systemd_197.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Ross Burton - Jan. 28, 2013, 7:30 p.m.
On 28 January 2013 19:24, Enrico Scholz <enrico.scholz@sigma-chemnitz.de> wrote:
> Use ${ROOT_HOME} which was added in commit
> a78cd0b3a69b829327cea035321051ab11cba70f.
>
> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>

Acked-by: Ross Burton <ross.burton@intel.com>

Ross

Patch

diff --git a/meta/recipes-core/systemd/systemd_197.bb b/meta/recipes-core/systemd/systemd_197.bb
index 500c3ec..a1d9a09 100644
--- a/meta/recipes-core/systemd/systemd_197.bb
+++ b/meta/recipes-core/systemd/systemd_197.bb
@@ -73,8 +73,7 @@  EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
 do_configure_prepend() {
 	export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
 
-	# we only have /home/root, not /root
-	sed -i -e 's:=/root:=/home/root:g' units/*.service*
+	sed -i -e 's:=/root:=${ROOT_HOME}:g' units/*.service*
 }
 
 do_install() {