]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: fix SULOGIN path ChenQi/systemd-SULOGIN-path
authorChen Qi <Qi.Chen@windriver.com>
Wed, 25 Mar 2015 05:46:56 +0000 (13:46 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Wed, 25 Mar 2015 06:00:48 +0000 (14:00 +0800)
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>
meta/recipes-core/systemd/systemd_219.bb

index f2d3c13e70a884412f70302870f5ec1fc045e5aa..843e30b74a0da37750a18eefdbf05d9f9b62c125 100644 (file)
@@ -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