Created attachment 634160 [details]
slightly modified serial-getty@.service
Description of problem:
The unit file serial-getty@.service contains the line Environment=TERM=vt102 with the intention to pass it to the environment of the new shell but it looks as if it is ignored by agetty.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. instantiate a getty for a serial line
2. log in
3. echo $TERM
The value "linux" is assigned to TERM
The value "vt102" should be assigned to TERM
The attached unit file which basically appends vt102 to ExecStart works for me.
agetty always overrides the TERM variable with its own logic, unless the third argument is specified. That explains why Environment has no effect.
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.
systemd-195-10.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-195-10.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
systemd-195-10.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.