main/busybox: /sbin/init does not pass environment variables to child processes
I am aware that this is rather missing feature than a bug but it would be nice if /sbin/init
from BusyBox pass env vars to child processes. Currently, it seems that init
does not do that.
Example:
I have passed the following envs in boot params:
HOME=/root
TERM=linux
dmesg
Run /sbin/init as init process
with arguments:
/sbin/init
with environment:
HOME=/root
TERM=linux
/etc/inittab
tty1::respawn:-/bin/ash
tty2::respawn:-/bin/ash
tty3::respawn:-/bin/ash
::sysinit:/etc/init.d/rcS
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/poweroff
In every tty (tty1, tty2, tty3), I'm getting:
HOME=/
TERM=vt102