system: set default PATH according to BR2_ROOTFS_MERGED_USR

Use "/usr/bin:/usr/sbin" as the default path if BR2_ROOTFS_MERGED_USR
is enabled, otherwise use "/bin:/sbin:/usr/bin:/usr/sbin".

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Paul Cercueil 2020-08-08 17:55:27 +02:00 committed by Yann E. MORIN
parent 7653028af0
commit 11654b1e9e

View File

@ -402,7 +402,8 @@ endif # BR2_ROOTFS_SKELETON_DEFAULT
config BR2_SYSTEM_DEFAULT_PATH
string "Set the system's default PATH"
default "/bin:/sbin:/usr/bin:/usr/sbin"
default "/usr/bin:/usr/sbin" if BR2_ROOTFS_MERGED_USR
default "/bin:/sbin:/usr/bin:/usr/sbin" if !BR2_ROOTFS_MERGED_USR
help
Sets the system's default PATH. It is being used in
/etc/profile in the skeleton-init-common package and by some