xserver-nodm-init: redirect Xserver output to log file

Xserver prints many debug messages by the console output,
this bbappend modifies the init line to redirect the messages
to a log file.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2018-01-26 16:10:01 +01:00
parent 92448d2ea7
commit 200b839ad3
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# Copyright (C) 2018 Digi International
do_install_append() {
# Redirect output to log file
sed -i -e "/^exec/{s,\$\*,\$\* >/var/log/Xsession.log 2>\&1,}" ${D}${sysconfdir}/xserver-nodm/Xserver
}