Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] system: make sh symlink match original busybox symlink path
@ 2015-06-16 15:41 Matthew Starr
  2015-06-16 16:31 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Starr @ 2015-06-16 15:41 UTC (permalink / raw)
  To: buildroot

The symlink created by buildroot for /bin/sh when busybox is used
is the full path to /bin/busybox and does not match the symlink
created by busybox for /bin/sh, which is just busybox.  When handling
files on the host system this will point to the host system's busybox
if present and not the target busybox.

This is fixed by changing the /bin/sh symlink to just be busybox since
both files are in the same directory.

Signed-off-by: Matthew Starr <mstarr@hedonline.com>
---
 system/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/Config.in b/system/Config.in
index 84cde94..5c4ba90 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -236,7 +236,7 @@ endchoice # /bin/sh
 
 config BR2_SYSTEM_BIN_SH
 	string
-	default "/bin/busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
+	default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
 	default "/bin/bash"    if BR2_SYSTEM_BIN_SH_BASH
 	default "/bin/dash"    if BR2_SYSTEM_BIN_SH_DASH
 	default "/bin/zsh"     if BR2_SYSTEM_BIN_SH_ZSH
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-16 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16 15:41 [Buildroot] [PATCH 1/1] system: make sh symlink match original busybox symlink path Matthew Starr
2015-06-16 16:31 ` Yann E. MORIN
2015-06-16 17:31   ` Matthew Starr
2015-06-16 20:21     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox