mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
* python/tests/create.py: adapt to new naming scheme in FC5
Daniel
This commit is contained in:
parent
c54ae3f023
commit
44c2c10ea5
@ -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>
|
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
|
* src/driver.h src/xen_internal.c: just add a driver block for
|
||||||
|
@ -29,8 +29,13 @@ if osroot == None:
|
|||||||
|
|
||||||
kernel=open("/proc/version").read().split()
|
kernel=open("/proc/version").read().split()
|
||||||
kernelOv = kernel[2]
|
kernelOv = kernel[2]
|
||||||
|
|
||||||
|
if kernelOv.find('hypervisor'):
|
||||||
kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest')
|
kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest')
|
||||||
initrdU = "/boot/initrd-" + kernelOv.replace('hypervisor', 'guest') + ".img"
|
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):
|
if not os.access(kernelU, os.R_OK):
|
||||||
print "Did not found the guest kernel %s" % (kernelU)
|
print "Did not found the guest kernel %s" % (kernelU)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user