]> xenbits.xensource.com Git - xen.git/commitdiff
xend: fix regression in c/s 19330
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 15:40:52 +0000 (15:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 15:40:52 +0000 (15:40 +0000)
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>
tools/python/xen/xend/image.py

index 772b8044cd114e4c7697897bfd34c747589011eb..9c1eac878e503e3a27ec8d341f36d61485be26f4 100644 (file)
@@ -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)