ia64/xen-unstable

changeset 14976:1634486b2a5c

xend: Don't use -q flag to bootloader if activating text console.

In Xen 3.0.3 series release, if one did 'xm create -c someguest' then
you would be shown the pygrub boot menu, allowing one to pick a
kernel. If you didn't use the -c arg, then it'd just pick the default
kernel.

In Xen 3.0.5 testing, xm is forcing the addition of the '-q' flag
whenever the 'bootargs' parameter is not given in the config file. So
if one does not have 'bootargs' specified, and one uses 'xm create -c
someguest' you never get to see the pygrub boot menu.

This patch fixes 'xm create' so that it does not add the '-q' flag
to the bootloader args, if the '-c' flag is given to xm create. This
makes the default user experiance operate closer to user
expectations.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
author kfraser@localhost.localdomain
date Fri Apr 27 15:12:48 2007 +0100 (2007-04-27)
parents 0063e11206d5
children 4789f3b2e1b9
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Fri Apr 27 15:09:39 2007 +0100
     1.2 +++ b/tools/python/xen/xm/create.py	Fri Apr 27 15:12:48 2007 +0100
     1.3 @@ -777,8 +777,11 @@ def make_config(vals):
     1.4          config.append(['bootloader', vals.bootloader])
     1.5          if vals.bootargs:
     1.6              config.append(['bootloader_args', vals.bootargs])
     1.7 -        else: 
     1.8 -            config.append(['bootloader_args', '-q'])        
     1.9 +        else:
    1.10 +            if vals.console_autoconnect:
    1.11 +                config.append(['bootloader_args', ''])
    1.12 +            else:
    1.13 +                config.append(['bootloader_args', '-q'])
    1.14      config.append(['image', config_image])
    1.15  
    1.16      config_devs = []