X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/736f2c6a4e8f82902c27086fe4f5db97b4ee6339..80608a9b583c98d01f993a2603f9e64d6a0f2fc5:/invirt-database?ds=sidebyside diff --git a/invirt-database b/invirt-database index ba97ed6..b914701 100644 --- a/invirt-database +++ b/invirt-database @@ -52,8 +52,10 @@ else: if 'installer_options' in locals(): #Installer disk.append('phy:/dev/xenvg/s_install_hda,hdb,r') - kernel = '/boot/vmlinuz-2.6.24-19-xen' #From hardy - ramdisk = '/boot/initrd.img-2.6.24-19-xen' + import os + release = os.uname()[2] + kernel = '/boot/vmlinuz-%s' % release + ramdisk = '/boot/initrd.img-%s' % release if not machine.nics: raise RuntimeError('You must have a nic to autoinstall')