When booting via xm, only run the bootloader if it's in non-interactive mode:

otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
Tim Deegan committed 2007-01-09 13:24:45 +00:00
1 parent 38d6397a83
commit db442369b3
1 file changed
+6 -1
+6 -1
View File
@@ -765,7 +765,12 @@ def make_config(vals):
if vals.bootloader:
if vals.bootloader == "pygrub":
vals.bootloader = osdep.pygrub_path
config_image = run_bootloader(vals, config_image)
# if a kernel is specified, we're using the bootloader
# non-interactively, and need to let xend run it so we preserve the
# real kernel choice.
if not vals.kernel:
config_image = run_bootloader(vals, config_image)
config.append(['bootloader', vals.bootloader])
if vals.bootargs:
config.append(['bootloader_args', vals.bootargs])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.