From fa53f898eaba15dff030f9eadf86e5bca7d954fa Mon Sep 17 00:00:00 2001 From: Martijn de Gouw Date: Thu, 5 Oct 2023 21:37:49 +0200 Subject: busybox: Set PATH in syslog initscript This script is not always called with /sbin and /usr/sbin in the PATH already, for example when called via ssh. Explicitly set PATH to make sure it includes /sbin and /usr/sbin since that's where start-stop-daemon is located. Signed-off-by: Martijn de Gouw Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-core/busybox/files/syslog | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-core/busybox') diff --git a/meta/recipes-core/busybox/files/syslog b/meta/recipes-core/busybox/files/syslog index 2208613e8c..a4fea30ab7 100644 --- a/meta/recipes-core/busybox/files/syslog +++ b/meta/recipes-core/busybox/files/syslog @@ -10,6 +10,8 @@ set -e +PATH="/bin:/usr/bin:/sbin:/usr/sbin" + if [ -f /etc/syslog-startup.conf ]; then . /etc/syslog-startup.conf LOG_LOCAL=0 -- cgit 1.2.3-korg