mirror of https://gitee.com/openkylin/libvirt.git
* 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>
|
||||
|
||||
* 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()
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue