summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn de Gouw <martijn.de.gouw@prodrive-technologies.com>2023-10-05 21:37:49 +0200
committerSteve Sakoman <steve@sakoman.com>2023-10-25 04:51:01 -1000
commite0cfa4c6a1e347b0a63816587e37fcc3b76e8fb4 (patch)
tree12a073d1728e88bf3e6a1eda3b74120aeef3abe1
parent2b0c041e2cad5369f7ea2d5b97422958a2b6083d (diff)
downloadpoky-e0cfa4c6a1e347b0a63816587e37fcc3b76e8fb4.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. (From OE-Core rev: e9ca1405b732720ff72d379e0262a78bfd2e7d53) 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> (cherry picked from commit fa53f898eaba15dff030f9eadf86e5bca7d954fa) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 @@
10 10
11set -e 11set -e
12 12
13PATH="/bin:/usr/bin:/sbin:/usr/sbin"
14
13if [ -f /etc/syslog-startup.conf ]; then 15if [ -f /etc/syslog-startup.conf ]; then
14 . /etc/syslog-startup.conf 16 . /etc/syslog-startup.conf
15 LOG_LOCAL=0 17 LOG_LOCAL=0