Hi, This patch allow passing command line options to core.img or g2ldr:
For example, in grub2: multiboot /core.img prefix=(hd0,1)/boot/grub multiboot /core.img root=(hd0,1) linux /g2ldr prefix=(hd0,1)/boot/grub linux /g2ldr root=(hd0,1) prefix will take preference over root. you can also set other variables, for example: multiboot /core.img root=(hd0,1) debug=all This patch also set the boot device in the multiboot loader, for example: set root=(hd0,1) multiboot /core.img boot It will show the menu instead of rescue mode. 2008-02-25 Bean <[EMAIL PROTECTED]> * boot/i386/pc/lnxboot.S (real_code): Copy cmdline to safe location and setup variable grub_boot_cmdline. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_BOOT_CMDLINE): New macro. (GRUB_KERNEL_MACHINE_PREFIX): Changed to 0x24. (GRUB_KENREL_MACHINE_RAW_SIZE): Changed to 0x4C0. (grub_boot_cmdline): New variable. * kern/i386/pc/init.c (make_install_device): Check for root variable. (grub_machine_set_prefix): Check for cmdline. * kern/i386/pc/startup.S (grub_boot_cmdline): New variable. (multiboot_trampoline): Copy command line. * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function. (grub_multiboot): Set boot device. -- Bean
cmdline.diff
Description: Binary data
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel