[Pkg-xen-changes] r325 - trunk/xen-common/debian/patches

Bastian Blank waldi at costa.debian.org
Thu Sep 21 21:47:21 UTC 2006


Author: waldi
Date: Thu Sep 21 21:47:21 2006
New Revision: 325

Added:
   trunk/xen-common/debian/patches/path-relative.dpatch   (contents, props changed)
Modified:
   trunk/xen-common/debian/patches/00list

Log:
* debian/patches/00list: Add path-relative.
* debian/patches/path-relative.dpatch: Add.


Modified: trunk/xen-common/debian/patches/00list
==============================================================================
--- trunk/xen-common/debian/patches/00list	(original)
+++ trunk/xen-common/debian/patches/00list	Thu Sep 21 21:47:21 2006
@@ -1,3 +1,4 @@
 network-dummy
 xend-disable-relocation
 interpreter
+path-relative

Added: trunk/xen-common/debian/patches/path-relative.dpatch
==============================================================================
--- (empty file)
+++ trunk/xen-common/debian/patches/path-relative.dpatch	Thu Sep 21 21:47:21 2006
@@ -0,0 +1,60 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## path-relative.dpatch by Bastian Blank <waldi at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad xen-common~/tools/examples/xmexample.hvm xen-common/tools/examples/xmexample.hvm
+--- xen-common~/tools/examples/xmexample.hvm	2006-08-22 11:56:30.000000000 +0200
++++ xen-common/tools/examples/xmexample.hvm	2006-09-21 23:45:52.000000000 +0200
+@@ -6,16 +6,9 @@
+ # you can set the parameters for the domain on the xm command line.
+ #============================================================================
+ 
+-import os, re
+-arch = os.uname()[4]
+-if re.search('64', arch):
+-    arch_libdir = 'lib64'
+-else:
+-    arch_libdir = 'lib'
+-
+ #----------------------------------------------------------------------------
+ # Kernel image file.
+-kernel = "/usr/lib/xen/boot/hvmloader"
++kernel = "hvmloader"
+ 
+ # The domain build function. HVM domain uses 'hvm'.
+ builder='hvm'
+@@ -112,7 +105,7 @@
+ #============================================================================
+ 
+ # New stuff
+-device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
++device_model = 'qemu-dm'
+ 
+ #-----------------------------------------------------------------------------
+ # boot on floppy (a), hard disk (c) or CD-ROM (d) 
+diff -urNad xen-common~/tools/examples/xmexample.vti xen-common/tools/examples/xmexample.vti
+--- xen-common~/tools/examples/xmexample.vti	2006-08-22 11:56:30.000000000 +0200
++++ xen-common/tools/examples/xmexample.vti	2006-09-21 23:46:29.000000000 +0200
+@@ -6,10 +6,6 @@
+ # you can set the parameters for the domain on the xm command line.
+ #============================================================================
+ 
+-import os, re
+-arch = os.uname()[4]
+-arch_libdir = 'lib'
+-
+ #----------------------------------------------------------------------------
+ # Kernel image file.
+ kernel = "/usr/lib/xen/boot/guest_firmware.bin"
+@@ -64,7 +60,7 @@
+ #============================================================================
+ 
+ # New stuff
+-device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
++device_model = 'qemu-dm'
+ 
+ # Advanced users only. Don't touch if you don't know what you're doing
+ memmap = '/usr/lib/xen/boot/mem-map.sxp'



More information about the Pkg-xen-changes mailing list