summaryrefslogtreecommitdiff
path: root/src/core/execute.c
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2016-06-20 18:54:21 +0200
committerFranck Bui <fbui@suse.com>2016-06-22 08:28:55 +0200
commit32391275c02715f76232128c49b19bb619cd9463 (patch)
treeee1145f10b2a998c19187e2c9943db7303551bba /src/core/execute.c
parent8ce0611e42c2b0d11007e2172edaa86ce4e4125d (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/core/execute.c')
0 files changed, 0 insertions, 0 deletions