[BusyBox 0001059]: Standalone not working ?

bugs at busybox.net bugs at busybox.net
Mon Feb 11 16:30:32 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1059 
====================================================================== 
Reported By:                AndyUK123
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1059
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             10-01-2006 10:20 PDT
Last Modified:              02-11-2008 08:30 PST
====================================================================== 
Summary:                    Standalone not working ?
Description: 
When I compiled busybox static (including Standalone set to on) and used it
for init I found that when executing rcS the system was unable to "find"
any commands unless they were referenced directly.

putting /bin/echo "$PATH" at the start showed the correct pathing which
/should/ have ment that echo etc was found without an explicit PATH
declaration but :

echo "test"       - FAILS
/bin/echo "test"  - Works

backing off to v1.1.3 on the same setup (just replacing busybox) works
fine

both busybox versions & the kernel(2.4.29) were compiled with gcc version
3.4.6 20060404 (Red Hat 3.4.6-3)

I may well be doing something silly here, but I can't see it!



====================================================================== 

---------------------------------------------------------------------- 
 klj - 10-11-06 03:03  
---------------------------------------------------------------------- 
I have seen a similar problem, 'sh'ing in a chroot environment breaks path
Busybox 1.1.2 works fine. Busybox 1.2.1 has a problem:

root:/home/kev/tmp> ls -al ./bin/echo
lrwxrwxrwx    1 207      2000            7 Oct 11 09:37 ./bin/echo ->
busybox
root:/home/kev/tmp> ./bin/echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
root:/home/kev/tmp> /usr/sbin/chroot /home/kev/tmp/
root:/> /bin/echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
root:/> echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
root:/> sh
root:/> echo $PATH
sh: echo: not found
root:/> /bin/echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
root:/> 

---------------------------------------------------------------------- 
 goutnet - 02-16-07 07:52  
---------------------------------------------------------------------- 
This .config fixed this problem for me, not sure it would help but ... 

---------------------------------------------------------------------- 
 vda - 02-11-08 08:30  
---------------------------------------------------------------------- 
This bug is too old. SH_STANDALONE had many changes since then. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-01-06 10:20  AndyUK123      New Issue                                    
10-01-06 10:20  AndyUK123      Status                   new => assigned     
10-01-06 10:20  AndyUK123      Assigned To               => BusyBox         
10-11-06 03:03  klj            Note Added: 0001699                          
10-11-06 03:03  klj            Issue Monitored: klj                         
02-16-07 07:52  goutnet        Note Added: 0002173                          
02-11-08 08:30  vda            Status                   assigned => closed  
02-11-08 08:30  vda            Note Added: 0003894                          
======================================================================




More information about the busybox-cvs mailing list