Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Login to console - incorrect TERM settings #88

Closed
cmitu opened this issue Mar 17, 2019 · 1 comment
Closed

Auto-Login to console - incorrect TERM settings #88

cmitu opened this issue Mar 17, 2019 · 1 comment

Comments

@cmitu
Copy link

cmitu commented Mar 17, 2019

In d33487c#diff-abf7d6e1d74604f159aeaaf38a3f3b3aR962 (when setting auto-login to console), the TERM option passed to agetty are taken from the current user's session - the one that runs raspi-config. This can produce incorrect results for the console auto-login session if raspi-config is executed remotely and the TERM is set to something like xterm-256color.
This produces an autologin.conf containing

ExecStart=-/sbin/agetty --autologin pi --noclear %I xterm-256color

instead of

ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM

The console session (via auto-login) should have TERM=linux. I think $TERM should be escaped to \$TERM to avoid the variable substitution.

@dandjo
Copy link

dandjo commented Mar 25, 2019

Confirming. Replacing xterm-256color with $TERM in /etc/systemd/system/getty@tty1.service.d/autologin.conf solved the problem with strange dialog characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants