diff options
| author | Martijn de Gouw <martijn.de.gouw@prodrive-technologies.com> | 2023-10-05 21:37:49 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-06 11:51:11 +0100 |
| commit | 0fb1ff0ffb527a6364cef7159c0d9dcb879e8dd9 (patch) | |
| tree | 53e81727c73ff5b411cdb51cb78d4a8104b8c498 | |
| parent | ba7ac22f2ed783fd4b304c4e3ca0d1203475a81f (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-core/busybox/files/syslog | 2 |
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 | ||
| 11 | set -e | 11 | set -e |
| 12 | 12 | ||
| 13 | PATH="/bin:/usr/bin:/sbin:/usr/sbin" | ||
| 14 | |||
| 13 | if [ -f /etc/syslog-startup.conf ]; then | 15 | if [ -f /etc/syslog-startup.conf ]; then |
| 14 | . /etc/syslog-startup.conf | 16 | . /etc/syslog-startup.conf |
| 15 | LOG_LOCAL=0 | 17 | LOG_LOCAL=0 |
