From: Mingli Yu Date: Mon, 21 Apr 2025 06:11:56 +0000 (+0800) Subject: base-files: Make PATH retain the existing value X-Git-Tag: uninative-4.8~687 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4340cd7da25c69424915f29c2bb9531fc33617e6;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git base-files: Make PATH retain the existing value We may set the PATH variable such as in /etc/environment for ssh session, so make PATH retain the previous existing value to fix the gap. Signed-off-by: Mingli Yu Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index 5e8393c91c6..375be648910 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile @@ -1,7 +1,7 @@ # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). -PATH="/usr/local/bin:/usr/bin:/bin" +PATH="$PATH:/usr/local/bin:/usr/bin:/bin" [ "$TERM" ] || TERM="vt100" # Basic terminal capab. For screen etc. # Add /sbin & co to $PATH for the root user