From ab577aa582ff0f36d6e7883c0d45dafb9ac223ba Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 21 Apr 2017 17:45:29 -0700 Subject: profile: disable systemd color output By default systemd utilities use escape sequences to produce colored output. But systemd also uses less as a pager. The less command provided in the Toradex demo images is provided by BusyBox, which does not support color escape sequences. Disable colored output altogether. This makes output of journalctl much more readable. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- recipes-core/base-files/base-files/profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'recipes-core/base-files') diff --git a/recipes-core/base-files/base-files/profile b/recipes-core/base-files/base-files/profile index 6e2a6c7..22308ad 100644 --- a/recipes-core/base-files/base-files/profile +++ b/recipes-core/base-files/base-files/profile @@ -27,9 +27,10 @@ if [ -d /etc/profile.d ]; then fi test -z "$DISPLAY" && DISPLAY=":0.0" # have the X display defined, unless it is already set, e.g. by a ssh connection -export DISPLAY -export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM +SYSTEMD_COLORS=0 + +export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM DISPLAY SYSTEMD_COLORS # Serial consoles are not able to autoresize. Set size once upon login. if [ -x /usr/bin/resize ] && termpath="`tty`"; then -- cgit v1.2.3