ia64/xen-unstable

changeset 13339:4d3ac395ea57

Fix bootloader = "pygrub" via 'xm create'.

Signed-off-by: John Levon <john.levon@sun.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Jan 09 13:24:43 2007 +0000 (2007-01-09)
parents 8966444e69fa
children 3f8930dc7d90
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Tue Jan 09 13:24:42 2007 +0000
     1.2 +++ b/tools/python/xen/xm/create.py	Tue Jan 09 13:24:43 2007 +0000
     1.3 @@ -28,6 +28,7 @@ import xmlrpclib
     1.4  
     1.5  from xen.xend import sxp
     1.6  from xen.xend import PrettyPrint
     1.7 +from xen.xend import osdep
     1.8  import xen.xend.XendClient
     1.9  from xen.xend.XendBootloader import bootloader
    1.10  from xen.util import blkif
    1.11 @@ -759,6 +760,8 @@ def make_config(vals):
    1.12  
    1.13      config_image = configure_image(vals)
    1.14      if vals.bootloader:
    1.15 +        if vals.bootloader == "pygrub":
    1.16 +            vals.bootloader = osdep.pygrub_path
    1.17          config_image = run_bootloader(vals, config_image)
    1.18          config.append(['bootloader', vals.bootloader])
    1.19          if vals.bootargs: