[systemd-devel] [PATCH] units: cleanup agetty command line

Colin Guthrie gmane at colin.guthr.ie
Mon Jun 3 10:00:45 PDT 2013


'Twas brillig, and Karel Zak at 03/06/13 13:28 did gyre and gimble:
>  * term type is optional (default is 'linux' for virtual terminals
>    and 'vt102' for serial lines)

It may no longer matter (especially if the fix mentioned by Michael in
comment 1 of the bug quoted below is now merged) but FYI the "linux"
term type was specified explicitly due to agetty not respecting TERM env
var:


commit 2161de72c517d34d1ceb9b4c1a300f0b54ce5a9c
Author: Michal Schmidt <mschmidt at redhat.com>
Date:   Mon Oct 29 21:59:34 2012 +0100

    units: agetty overrides TERM

    Environment=TERM=... has no effect on agetty who sets it by itself. To
    really set TERM to a specified value, it has to be given on the command
    line.

    https://bugzilla.redhat.com/show_bug.cgi?id=870622


>From comment 1:
"Furthermore, I believe there's a bug in agetty. It attempts to detect
the distinction between the vc and a serial line and set TERM
accordingly, but it does not work as expected. I will send Karel a fix."

If it's all addressed, then it might be worth mentioning that it needs
an updated version (and not the v2.20 version you detailed) or that
Michal's interpretation was incorrect etc.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the systemd-devel mailing list