From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 8161] New: default /bin/sh symlink to busybox is full path and not relative
Date: Thu, 4 Jun 2015 17:47:42 +0000 (UTC) [thread overview]
Message-ID: <bug-8161-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=8161
Summary: default /bin/sh symlink to busybox is full path and
not relative
Product: buildroot
Version: 2015.05
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: mstarr at hedonline.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Busybox creates all symlinks from all the utilities it contains to the
/bin/busybox binary as relative paths. As an example all of busybox's
utilities in /bin all have symlinks set to "busybox" since the busybox utility
is located in the same directory.
When buildroot added the BR2_SYSTEM_BIN_SH option in 2014.11 and allowed the
path to the sh symlink to be set, the default is setup as "/bin/busybox". This
modifies what busybox setups by default which is to just be "busybox". The
issue with this is that any access to /bin/sh under the target directory points
to the host build systems /bin/busybox which can be problematic. As an example
I perform an md5sum on all files in the root file system under the target
directory and then compare them to the installed system on the target hardware,
but /bin/sh fails this test since it pointed to the host build systems busybox
for the md5 instead of the one built for the target hardware.
The solution would be to change the default value of BR2_SYSTEM_BIN_SH to
"busybox" when BR2_SYSTEM_BIN_SH_BUSYBOX is selected.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
next reply other threads:[~2015-06-04 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 17:47 bugzilla at busybox.net [this message]
2015-06-04 21:13 ` [Buildroot] [Bug 8161] default /bin/sh symlink to busybox is full path and not relative bugzilla at busybox.net
2015-07-07 15:47 ` bugzilla at busybox.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-8161-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox