summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-08-02 21:39:37 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-04 11:44:28 +0100
commit5fab97cc550682fb3dd9c3878e241806497f48a0 (patch)
tree8283f9a85b91802ff7c8e4ab35edfcc3c81e806b /meta/recipes-core/systemd
parent93e8644287b472e138b6cb5ec3d52ae2f201ed80 (diff)
downloadpoky-5fab97cc550682fb3dd9c3878e241806497f48a0.tar.gz
systemd: Point to target binary paths for loadkeys and setfont
with newer systemd, if not specified, these paths are searched on build host /usr dir log.do_configure.2373278:Program /usr/sbin/loadkeys found: YES (/usr/sbin/loadkeys) log.do_configure.2373278:Program /usr/sbin/setfont found: YES (/usr/sbin/setfont) and if build host happens to have kbd installed then it uses those locations, this would work fine if the assumption between OE distro and host distro matches but fail otherwise e.g. on archlinux these binaries are in /usr/sbin but in OE they are in ${base_bindir} This results in qemux86-64 systemd-vconsole-setup[211]: /usr/sbin/loadkeys failed with exit status 1. (From OE-Core rev: 94ccc7acc4a871f5bb7ab8e135e70b5519eff6ad) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd_254.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-core/systemd/systemd_254.bb b/meta/recipes-core/systemd/systemd_254.bb
index 6ef148ac36..7ba4233f6a 100644
--- a/meta/recipes-core/systemd/systemd_254.bb
+++ b/meta/recipes-core/systemd/systemd_254.bb
@@ -239,7 +239,9 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \
239 -Dsystem-gid-max=999 \ 239 -Dsystem-gid-max=999 \
240 " 240 "
241 241
242# Hardcode target binary paths to avoid using paths from sysroot 242# Hardcode target binary paths to avoid using paths from sysroot or worse
243# it pokes for these binaries on build host and encodes that distro assumption
244# into target
243EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \ 245EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \
244 -Dkmod-path=${base_bindir}/kmod \ 246 -Dkmod-path=${base_bindir}/kmod \
245 -Dmount-path=${base_bindir}/mount \ 247 -Dmount-path=${base_bindir}/mount \
@@ -247,7 +249,9 @@ EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \
247 -Dquotaon-path=${sbindir}/quotaon \ 249 -Dquotaon-path=${sbindir}/quotaon \
248 -Dsulogin-path=${base_sbindir}/sulogin \ 250 -Dsulogin-path=${base_sbindir}/sulogin \
249 -Dnologin-path=${base_sbindir}/nologin \ 251 -Dnologin-path=${base_sbindir}/nologin \
250 -Dumount-path=${base_bindir}/umount" 252 -Dumount-path=${base_bindir}/umount \
253 -Dloadkeys-path=${base_bindir}/loadkeys \
254 -Dsetfont-path=${base_bindir}/setfont"
251 255
252# The 60 seconds is watchdog's default vaule. 256# The 60 seconds is watchdog's default vaule.
253WATCHDOG_TIMEOUT ??= "60" 257WATCHDOG_TIMEOUT ??= "60"