X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/9cef6cd2f99b2a60dd5422804f73987aacee7b32..1b2edab0d0593dc5e8283822bc67ee28c2c81f2d:/invirt-database?ds=sidebyside diff --git a/invirt-database b/invirt-database index b99b548..31e4b85 100644 --- a/invirt-database +++ b/invirt-database @@ -50,6 +50,10 @@ if machine_type.hvm: codepath = 'hvm' else: codepath = 'paravm' + if machine_type.type_id = 'linux-pvgrub': + use_pvgrub = True + else: + use_pvgrub = False if 'installer_options' in locals(): #Installer import shlex @@ -116,8 +120,10 @@ if codepath == 'hvm': device_model = '/usr/sbin/qemu-dm-invirt' serial = "pty" elif codepath == 'paravm': - bootloader = '/usr/bin/pygrub' - + if use_pvgrub: + kernel = '/usr/lib/grub/grub.xen' + else: + bootloader = '/usr/bin/pygrub' for n in machine.nics: check(re.match('^[0-9a-fA-F:]+$', n.mac_addr) and re.match('^[0-9.]*$', n.ip))