mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Avoid specifying bogus DISPLAY=None when spawning device model.
Signed-off-by: James Bulpin <james@xensource.com>
This commit is contained in:
1 parent
739b1e205e
commit
d52306f795
1 file changed
+2
-1
@@ -311,7 +311,8 @@ class VmxImageHandler(ImageHandler):
|
||||
"-m", "%s" % (self.vm.getMemoryTarget() / 1024)])
|
||||
args = args + self.dmargs
|
||||
env = dict(os.environ)
|
||||
env['DISPLAY'] = self.display
|
||||
if self.display:
|
||||
env['DISPLAY'] = self.display
|
||||
log.info("spawning device models: %s %s", self.device_model, args)
|
||||
self.pid = os.spawnve(os.P_NOWAIT, self.device_model, args, env)
|
||||
log.info("device model pid: %d", self.pid)
|
||||
|
||||