aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-12 15:40:52 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-12 15:40:52 +0000
commit6dde5f55da1ddfec808b0560f4923eff7b6de4a6 (patch)
tree055189b396f18f1c6e42d8e5926e946a8c153825 /tools
parent0ef0dcc006677405c2f83ddc54bfc9c7af8e9604 (diff)
downloadxen-6dde5f55da1ddfec808b0560f4923eff7b6de4a6.tar.gz
xen-6dde5f55da1ddfec808b0560f4923eff7b6de4a6.tar.bz2
xen-6dde5f55da1ddfec808b0560f4923eff7b6de4a6.zip
xend: fix regression in c/s 19330
attached patch fixes a regression in c/s 19330 which prevents to start guests on a Linux Dom0. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/image.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
index 772b8044cd..9c1eac878e 100644
--- a/tools/python/xen/xend/image.py
+++ b/tools/python/xen/xend/image.py
@@ -232,7 +232,11 @@ class ImageHandler:
# If we use a device model, the pipes for communication between
# blktapctrl and ioemu must be present before the devices are
# created (blktapctrl must access them for new block devices)
- os.makedirs('/var/run/tap', 0755)
+
+ try:
+ os.makedirs('/var/run/tap', 0755)
+ except:
+ pass
try:
os.mkfifo('/var/run/tap/qemu-read-%d' % domid, 0600)