Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 8161] New: default /bin/sh symlink to busybox is full path and not relative
@ 2015-06-04 17:47 bugzilla at busybox.net
  2015-06-04 21:13 ` [Buildroot] [Bug 8161] " bugzilla at busybox.net
  2015-07-07 15:47 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-06-04 17:47 UTC (permalink / raw)
  To: buildroot

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.

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

end of thread, other threads:[~2015-07-07 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 17:47 [Buildroot] [Bug 8161] New: default /bin/sh symlink to busybox is full path and not relative bugzilla at busybox.net
2015-06-04 21:13 ` [Buildroot] [Bug 8161] " bugzilla at busybox.net
2015-07-07 15:47 ` bugzilla at busybox.net

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