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:51:11 +0100
commit0fb1ff0ffb527a6364cef7159c0d9dcb879e8dd9 (patch)
tree53e81727c73ff5b411cdb51cb78d4a8104b8c498 /meta/recipes-core/busybox
parentba7ac22f2ed783fd4b304c4e3ca0d1203475a81f (diff)
downloadpoky-0fb1ff0ffb527a6364cef7159c0d9dcb879e8dd9.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: fa53f898eaba15dff030f9eadf86e5bca7d954fa) 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 @@
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