summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
diff options
context:
space:
mode:
authorMartijn de Gouw <martijn.de.gouw@prodrive-technologies.com>2023-10-05 21:37:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-06 11:50:54 +0100
commitfa53f898eaba15dff030f9eadf86e5bca7d954fa (patch)
treeb768410084295fc7c6f0c369dca85007012a15ef /meta/recipes-core/busybox
parent7c42b976d7a72acf917bae9d055768a1350e507d (diff)
downloadopenembedded-core-fa53f898eaba15dff030f9eadf86e5bca7d954fa.tar.gz
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 <martijn.de.gouw@prodrive-technologies.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/busybox')
-rw-r--r--meta/recipes-core/busybox/files/syslog2
1 files changed, 2 insertions, 0 deletions
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