aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2011-06-28 13:56:53 +0100
committerRoger Pau Monne <roger.pau@entel.upc.edu>2011-06-28 13:56:53 +0100
commit685373b4bc896fa181be0185bd52bed6dd9737b0 (patch)
tree5e7f5c6aec0a821e52c1bf4f7d4f80597ef5cee1 /tools/python
parent30a8a752280278114cd5e119953a01ff67ec6171 (diff)
downloadxen-685373b4bc896fa181be0185bd52bed6dd9737b0.tar.gz
xen-685373b4bc896fa181be0185bd52bed6dd9737b0.tar.bz2
xen-685373b4bc896fa181be0185bd52bed6dd9737b0.zip
xend: NetBSD portability fix for LVM raw volume names
Xen 4.1.1 was incorrectly passing /dev/rmapper/vg-lvname to pygrub (notice the r in front of mapper), when it should pass /dev/mapper/rvg-lvname (add the r to the last file) when using NetBSD. I've patched it to work correctly. I'm attaching a unified diff with the patch made against Xen 4.1.1 (it's a really simple modification). From: Roger Pau Monne <roger.pau@entel.upc.edu> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/xen/xend/XendBootloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendBootloader.py b/tools/python/xen/xend/XendBootloader.py
index 74c9a2ac19..f17428eaa4 100644
--- a/tools/python/xen/xend/XendBootloader.py
+++ b/tools/python/xen/xend/XendBootloader.py
@@ -44,7 +44,7 @@ def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel = '',
raise VmError(msg)
if os.uname()[0] == "NetBSD" and disk.startswith('/dev/'):
- disk = disk.replace("/dev/", "/dev/r")
+ disk = "/r".join(disk.rsplit("/",1))
mkdir.parents("/var/run/xend/boot/", stat.S_IRWXU)