ia64/xen-unstable

changeset 18072:9361e140fee3

PV-GRUB: allow passing menu.lst as a ramdisk

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 16 13:50:47 2008 +0100 (2008-07-16)
parents 0796aa57d297
children 099aaca15ae6
files stubdom/grub/mini-os.c
line diff
     1.1 --- a/stubdom/grub/mini-os.c	Wed Jul 16 11:25:06 2008 +0100
     1.2 +++ b/stubdom/grub/mini-os.c	Wed Jul 16 13:50:47 2008 +0100
     1.3 @@ -681,7 +681,9 @@ int main(int argc, char *argv[])
     1.4          config_file[sizeof(config_file) - 1] = 0;
     1.5          if (!strncmp(config_file, "(nd)", 4))
     1.6              preset_menu = "dhcp";
     1.7 -    } else
     1.8 +    } else if (start_info.mod_len)
     1.9 +        preset_menu = (void*) start_info.mod_start;
    1.10 +    else
    1.11          preset_menu = "dhcp --with-configfile";
    1.12  
    1.13      mbi.drives_addr = BOOTSEC_LOCATION + (60 * 1024);