Re: [PATCH v2] serial-getty service: Add linux as default TERM

Joel Fernandes
2014-05-05T02:51:24Z

On 05/04/2014 09:37 PM, Joel Fernandes wrote:
> On 05/04/2014 09:31 PM, Khem Raj wrote:
>> On Sun, May 4, 2014 at 3:17 AM, Jonathan Liu <net147@gmail.com> wrote:
>>> I would prefer:
>>> Environment="TERM=xterm"
>>> ExecStart=-/sbin/agetty -8 --keep-baud %I @BAUDRATE@ $TERM
>>
>> I wonder if that would add some dependency on right terminfo being
>> present on system ?
>>
>
> I thought about this too, I have no idea frankly, I can see that it
> probably would :-(
>

Khem,
terminfo data (/usr/share/terminfo) seems to be coming from ncurses in
my build. I think ncurses-terminfo-base. Not sure what the right
dependency play we should be doing for this... set dependency to
ncurses-terminfo-base?

by the way
/lib/systemd/system/debug-shell.service
which ships with systemd already sets Environment=TERM=linux

Thanks,
-Joel