hvm: fix startup of HVM without Qubes Tools
Do not pollute environment of calling process, otherwise all VMs started from Qubes Manager afterwards will get QREXEC_STARTUP_NOWAIT, which will cause wait_for_session not working.
This commit is contained in:
parent
2eaf649eed
commit
12d897cd3e
@ -442,7 +442,7 @@ class QubesHVm(QubesVm):
|
||||
if kwargs.get('verbose', False):
|
||||
print >> sys.stderr, "--> Starting the qrexec daemon..."
|
||||
xid = self.get_xid()
|
||||
qrexec_env = os.environ
|
||||
qrexec_env = os.environ.copy()
|
||||
qrexec_env['QREXEC_STARTUP_NOWAIT'] = '1'
|
||||
retcode = subprocess.call ([system_path["qrexec_daemon_path"], str(xid), self.name, self.default_user], env=qrexec_env)
|
||||
if (retcode != 0) :
|
||||
|
Loading…
Reference in New Issue
Block a user