All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch for Xen 4.1.1 not working with LVM volumes and pygrub on NetBSD
@ 2011-06-26 16:21 Roger Pau Monné
  2011-06-26 18:30 ` Roger Pau Monné
  0 siblings, 1 reply; 6+ messages in thread
From: Roger Pau Monné @ 2011-06-26 16:21 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

Hello,

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).

Regards, Roger.

[-- Attachment #2: patch-lvm --]
[-- Type: application/octet-stream, Size: 429 bytes --]

--- tools/python/xen/xend/XendBootloader.py.orig	2011-06-14 18:03:44.000000000 +0200
+++ tools/python/xen/xend/XendBootloader.py	2011-06-26 18:06:24.000000000 +0200
@@ -44,7 +44,7 @@
         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)
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-28 14:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-26 16:21 Patch for Xen 4.1.1 not working with LVM volumes and pygrub on NetBSD Roger Pau Monné
2011-06-26 18:30 ` Roger Pau Monné
2011-06-28 12:57   ` Ian Jackson
2011-06-28 13:16     ` Christoph Egger
2011-06-28 13:53       ` Tim Deegan
2011-06-28 14:56         ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.