#648953 xen-tools: xen-create-image --dir option handles relative path incorrectly

#648953#5
Date:
2011-11-16 11:03:22 UTC
From:
To:
Hi,

when executing something like:

xen-create-image --hostname=vm01 --dir=. [...]

then the images will be created in the right place (the current working
directory) but the config file will contain the "disk" option with a
relative path as well and hence, xm will not find the image.

In the example above, the following entry in the domu config would be
created:

disk = [ 'file:./domains/vm01/disk.img,xvda1,w', ]

So probably either giving a relative path to the --dir option should not
be allowed or it should be converted to an absolute path for the domu
config entry?

I'm using debian wheezy with xen 4.1

cheers, josch