why are init's arguments wiped ?
carrier.nicolas0 at gmail.com
Mon Feb 1 16:50:01 UTC 2016
Frankly, I find it rather ugly to have to write a shell script, or a C
program and to alter the environment or write files just to circumvent a
dubious and historic "aesthetic" design choice.
Please understand me well, I have a functional (but ugly) solution
implemented for now which could satisfy me. I'm just trying to do my best
to propose a sensible, even if minor enhancement to busybox.
I'm sending my patch in it's current form in another thread. Thank you all
for all your interesting comments.
2016-02-01 15:44 GMT+01:00 Jody Bruchon <jody at jodybruchon.com>:
> On February 1, 2016 9:28:58 AM EST, Sean Mathews <mathewss at nutech.com>
> >Maybe write a simple C init wrapper and have it call the real init
> Write a shell script that stores its arguments in a particular text file
> i.e. 'echo "$@" > /var/log/init_cmdline'. Have that shell script 'exec
> /sbin/init $@' at the end.
> That would preserve the argument list somewhere with no modifications to
> BusyBox and remain otherwise functionally identical. It should also work
> with any init binary you choose.
> busybox mailing list
> busybox at busybox.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the busybox