aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-03-25 13:46:56 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-03-25 14:00:48 +0800
commit4493f45f7db4274425f6eee908543f82b63dd6e5 (patch)
tree38a683783ae5b793d0fa18679c8482694afe2e39
parentd3fcfe346b3472170641d9194243c4bbe06b8585 (diff)
downloadopenembedded-core-contrib-ChenQi/systemd-SULOGIN-path.tar.gz
systemd: fix SULOGIN pathChenQi/systemd-SULOGIN-path
Fix SULOGIN path so that rescue.service doesn't use `sulogin' from the sysroot part of the build on host, which would lead to errors like below when booting into rescue mode. /bin/sh: /buildarea2/chenqi/poky/build-systemd/tmp/sysroots/x86_64-linux/sbin/sulogin: not found Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-core/systemd/systemd_219.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_219.bb b/meta/recipes-core/systemd/systemd_219.bb
index f2d3c13e70..843e30b74a 100644
--- a/meta/recipes-core/systemd/systemd_219.bb
+++ b/meta/recipes-core/systemd/systemd_219.bb
@@ -123,6 +123,7 @@ do_configure_prepend() {
export AR="${HOST_PREFIX}gcc-ar"
export RANLIB="${HOST_PREFIX}gcc-ranlib"
export KMOD="${base_bindir}/kmod"
+ export SULOGIN="${base_sbindir}/sulogin"
if [ -d ${S}/units.pre_sed ] ; then
cp -r ${S}/units.pre_sed ${S}/units
else