diff options
author | Franck Bui <fbui@suse.com> | 2016-06-20 18:54:21 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2016-06-22 08:28:55 +0200 |
commit | 32391275c02715f76232128c49b19bb619cd9463 (patch) | |
tree | ee1145f10b2a998c19187e2c9943db7303551bba /src/shared/generator.c | |
parent | 8ce0611e42c2b0d11007e2172edaa86ce4e4125d (diff) |
pid1: initialize TERM environment variable correctly
When systemd is started by the kernel, the kernel set the TERM
environment variable unconditionnally to "linux" no matter the console
device used. This might be an issue for dumb devices with no colors
support.
This patch uses default_term_for_tty() for getting a more accurate
value. But it makes sure to keep the user preferences (if any) which
might be passed via the kernel command line. For that purpose /proc
should be mounted.
Diffstat (limited to 'src/shared/generator.c')
0 files changed, 0 insertions, 0 deletions