xmexample: portability fix
PATCH 1/1 xmexample: portability fix
Hi,
Attached patch makes config example files portable. Please apply to both -unstable and 3.3-testing.
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
tools/examples/xmexample.hvm +3 -3
@@ -7,11 +7,11 @@ #============================================================================ import os, re + +arch_libdir = 'lib' arch = os.uname()[4] -if re.search('64', arch): +if os.uname()[0] == 'Linux' and re.search('64', arch): arch_libdir = 'lib64' -else: - arch_libdir = 'lib' #---------------------------------------------------------------------------- # Kernel image file.
tools/examples/xmexample.vti +3 -1
@@ -7,8 +7,10 @@ #============================================================================ import os, re +arch_libdir = 'lib' arch = os.uname()[4] -arch_libdir = 'lib' +if os.uname()[0] == 'Linux' and re.search('64', arch): + arch_libdir = 'lib64' #---------------------------------------------------------------------------- # Kernel image file.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel