2008-01-23 Robert Millan <rmh@aybabtu.com>
* kern/i386/pc/init.c (make_install_device): When memdisk image is present, "(memdisk)/boot/grub" becomes the default prefix. * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus a memdisk tarball with all the modules. Add --overlay=DIR option that allows users to overlay additional files into the image.
This commit is contained in:
parent
dbb475a441
commit
06ab530333
3 changed files with 34 additions and 6 deletions
|
@ -64,7 +64,12 @@ make_install_device (void)
|
|||
/* XXX: This should be enough. */
|
||||
char dev[100];
|
||||
|
||||
if (grub_install_dos_part != -2)
|
||||
if (grub_memdisk_image_size)
|
||||
{
|
||||
grub_sprintf (dev, "(memdisk)%s", grub_prefix);
|
||||
grub_strcpy (grub_prefix, dev);
|
||||
}
|
||||
else if (grub_install_dos_part != -2)
|
||||
{
|
||||
grub_sprintf (dev, "(%cd%u",
|
||||
(grub_boot_drive & 0x80) ? 'h' : 'f',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue