Re: TERM defaults to linux even on serial console (where vt102 would be more appropriate)
On Sat Feb 19, 2000 at 11:09:27PM +0100, Eric Delaunay wrote:
> Erik Andersen wrote:
> > On Tue Feb 15, 2000 at 11:42:48AM +0100, Eric Delaunay wrote:
> > >
> > > > Thoughts? Sound agreeable?
> > >
> > > I can provide you a patch I wrote for init.c to implement my thoughts.
> >
> > Does the version now in CVS look agreeable?
>
> Well, I'd rather like to let the user a chance to overwrite TERM at boot time.
>
> However it seems there still is a problem: when I pass TERM=vt100 at boot
> time, kernel is calling the first program with the following environment:
> HOME=/
> TERM=linux
> TERM=vt100
>
> There are two TERM lines ;((
> It appears that init is getting the former while, when booting directly to
> /bin/sh, sh is getting the latter. Therefore init ignores any TERM=xxx passed
> to kernel command line. It always deals with TERM=linux ;(
>
> Should I file a bug against the kernel itself? Or could the bug be fixed in
> getenv()?
Hmm, I'm not sure, but the kernel would be a good place to start.
> Nevertheless, could you add the next fix, please?
Ok, applied.
-Erik
--
Erik B. Andersen Web: http://www.xmission.com/~andersen/
email: andersee@debian.org
--This message was written using 73% post-consumer electrons--
Reply to: