[BusyBox] Some more busybox issues...

Andreas Neuhaus andy at fasta.fh-dortmund.de
Thu Mar 15 20:14:12 UTC 2001


> > 2) linuxrc never works because applets.h uses BB_LINUXRC which is never
> > defined. fix is in one of my previous mails
> fixed now, thanks

you might also want to delete the "#undef BB_LINUXRC" lines in Config.h and
Config.h.Hurd because BB_LINUXRC is nowhere used anymore.

> > 3) lash export behaves strange when setting a var that was defined
before.
> > the old env entry isn't removed. e.g.: when PATH=/bin and doing export
> > PATH=/sbin:$PATH there are 2 PATH entries afterwards: one says
PATH=/bin,
> > the other PATH=/sbin:/bin. doing this again results in 3 PATH entries.
>
> I'm not seeing this:
> /home/andersen/CVS/busybox $ export FOO=bar
> /home/andersen/CVS/busybox $ export FOO=baz
> /home/andersen/CVS/busybox $ export FOO=bat:$FOO
> /home/andersen/CVS/busybox $ env | grep FOO
> FOO=bat:baz

hmm... i definately got this mistake... i'm looking into it... perhaps
there's something wrong with uClibc putenv...

> > 6) kernel 2.4.2 allows it to run /sbin/init from linuxrc (see
> > Documentation/initrd.txt). should busybox/init.c really instist on being
pid
> > 1 when running as init?
> Here is the problem.  Some folk expect to run init and have it act like
> sysvinit ('init 3' type of stuff).  If take out the check, and then run
init
> when it isn't really being the init process, it will still happily reboot
your
> system when you kill it.  Not very desirable behavior.

hmmm... right... currently i'm using execl("/sbin/init", "/linuxrc", NULL);
in my linuxrc. this will make busybox think it is linuxrc
(argv[0]="/linuxrc")...
another workaround may be to check if getpid()<10 or something. not a clean
solution but maybe worth to think about it.

regards,
andreas neuhaus

--
Life could be so much easier if we could just look at the source code...
  .~.
  /V\    Andreas Neuhaus, FaStA Informatik FH-Dortmund
 // \\    Sonnenstr. 96, D-44139 Dortmund, Tel 0231/9112-734
/(   )\    System-Administration FaStA FH-Dortmund
^^-^^
 LINUX - Don't fear the penguin







More information about the busybox mailing list