summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd_216.bb
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2014-09-03 13:49:28 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-31 10:43:58 +0000
commitff5510b3fad2e808a9bf23648612d913814ebb41 (patch)
tree2de4b25e951703e81098c284f2131b30db93c226 /meta/recipes-core/systemd/systemd_216.bb
parent9aff3a4ec058a1a1149d026ebedcc6251089fffb (diff)
downloadpoky-ff5510b3fad2e808a9bf23648612d913814ebb41.tar.gz
systemd: Use ${ROOT_HOME} instead of /root
systemd avoids using nss lookups for the root user, so naturally it assumes that root's home directory is /root. In OE that's not the case, and it can lead to long delays when shutting down due to user shutdown unit failures. (From OE-Core rev: e0e8a904cd287a23352e5713a93aeab3933e4563) Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd_216.bb')
-rw-r--r--meta/recipes-core/systemd/systemd_216.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd_216.bb b/meta/recipes-core/systemd/systemd_216.bb
index ebf939574d..598d45e7de 100644
--- a/meta/recipes-core/systemd/systemd_216.bb
+++ b/meta/recipes-core/systemd/systemd_216.bb
@@ -32,6 +32,7 @@ SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;branch=master;protocol=
32 file://uclibc-get-physmem.patch \ 32 file://uclibc-get-physmem.patch \
33 file://0001-add-support-for-executing-scripts-under-etc-rcS.d.patch \ 33 file://0001-add-support-for-executing-scripts-under-etc-rcS.d.patch \
34 file://0001-missing.h-add-fake-__NR_memfd_create-for-MIPS.patch \ 34 file://0001-missing.h-add-fake-__NR_memfd_create-for-MIPS.patch \
35 file://0001-Make-root-s-home-directory-configurable.patch \
35 file://touchscreen.rules \ 36 file://touchscreen.rules \
36 file://00-create-volatile.conf \ 37 file://00-create-volatile.conf \
37 file://init \ 38 file://init \
@@ -74,6 +75,7 @@ rootlibexecdir = "${rootprefix}/lib"
74# The gtk+ tools should get built as a separate recipe e.g. systemd-tools 75# The gtk+ tools should get built as a separate recipe e.g. systemd-tools
75EXTRA_OECONF = " --with-rootprefix=${rootprefix} \ 76EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
76 --with-rootlibdir=${rootlibdir} \ 77 --with-rootlibdir=${rootlibdir} \
78 --with-roothomedir=${ROOT_HOME} \
77 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \ 79 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \
78 --disable-manpages \ 80 --disable-manpages \
79 --disable-coredump \ 81 --disable-coredump \
@@ -99,7 +101,6 @@ do_configure_prepend() {
99 else 101 else
100 cp -r ${S}/units ${S}/units.pre_sed 102 cp -r ${S}/units ${S}/units.pre_sed
101 fi 103 fi
102 sed -i -e 's:=/root:=${ROOT_HOME}:g' ${S}/units/*.service*
103 sed -i '/ln --relative --help/d' ${S}/configure.ac 104 sed -i '/ln --relative --help/d' ${S}/configure.ac
104 sed -i -e 's:\$(LN_S) --relative -f:lnr:g' ${S}/Makefile.am 105 sed -i -e 's:\$(LN_S) --relative -f:lnr:g' ${S}/Makefile.am
105 sed -i -e 's:\$(LN_S) --relative:lnr:g' ${S}/Makefile.am 106 sed -i -e 's:\$(LN_S) --relative:lnr:g' ${S}/Makefile.am