qemu: command: Override HOME variable for system QEMU

By default, qemu user's home dir points to '/' which shouldn't be used
at all. We therefore pass the HOME variable from the current variable
iff not running as SUID, which means that for systemd we never set it.
This patch makes sure, that for system QEMU this is always set to
libDir/<driver>, session mode is left untouched.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Erik Skultety
2019-03-06 13:29:01 +01:00
parent 7e73137495
commit 75a9169881
692 changed files with 692 additions and 691 deletions

View File

@@ -1,6 +1,6 @@
LC_ALL=C \
PATH=/bin \
HOME=/home/test \
HOME=/tmp/lib/domain--1-encryptdisk \
USER=test \
LOGNAME=test \
XDG_DATA_HOME=/tmp/lib/domain--1-encryptdisk/.local/share \