* python/tests/create.py: adapt to new naming scheme in FC5

Daniel
This commit is contained in:
Daniel Veillard 2006-03-22 13:33:20 +00:00
parent c54ae3f023
commit 44c2c10ea5
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Wed Mar 22 13:34:32 EST 2006 Daniel Veillard <veillard@redhat.com>
* python/tests/create.py: adapt to new naming scheme in FC5
Tue Mar 21 00:40:29 CET 2006 Daniel Veillard <veillard@redhat.com>
* src/driver.h src/xen_internal.c: just add a driver block for

View File

@ -29,8 +29,13 @@ if osroot == None:
kernel=open("/proc/version").read().split()
kernelOv = kernel[2]
kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest')
initrdU = "/boot/initrd-" + kernelOv.replace('hypervisor', 'guest') + ".img"
if kernelOv.find('hypervisor'):
kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest')
initrdU = "/boot/initrd-" + kernelOv.replace('hypervisor', 'guest') + ".img"
elif kernelOv.find('xen0'):
kernelU = "/boot/vmlinuz-" + kernelOv.replace('xen0', 'xenU')
initrdU = "/boot/initrd-" + kernelOv.replace('xen0', 'xenU') + ".img"
if not os.access(kernelU, os.R_OK):
print "Did not found the guest kernel %s" % (kernelU)