On 10.03.22 23:39, jkm wrote:
Dear BusyBox devs,

Could you take a look at this Alpine Linux issue?
https://gitlab.alpinelinux.org/alpine/aports/-/issues/13578

I believe that init command from BusyBox overrides HOME and TERM environment variables that were set in boot params.

As a result, the following env vars that were set in boot params:
HOME=/root
TERM=linux

Looking at the kernel code in init/main.c, it does look like HOME=/ TERM=linux is hard coded in the kernel with no way to override this from the command line.

Did you check if you can actually set this to something else?

are changed to:
HOME=/
TERM=vt102

I suggest to check if HOME env var is set instead of hardcoding it:

     putenv((char *) "HOME=/");

If I'm right, then this will always be set, so this check will not actually help you.

--
Stefan Seyfried

"For a successful technology, reality must take precedence over
 public relations, for nature cannot be fooled." -- Richard Feynman
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to