From 4340cd7da25c69424915f29c2bb9531fc33617e6 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Mon, 21 Apr 2025 14:11:56 +0800 Subject: [PATCH] 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 --- meta/recipes-core/base-files/base-files/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3