why are init's arguments wiped ?

Jody Bruchon jody at jodybruchon.com
Mon Feb 1 14:44:31 UTC 2016


On February 1, 2016 9:28:58 AM EST, Sean Mathews <mathewss at nutech.com> wrote:
>Maybe write a simple C init wrapper and have it call the real init
>process.

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.


More information about the busybox mailing list