Disable calls to loadable modules (not supported yet)

This commit is contained in:
Robert Millan 2010-01-18 17:39:35 +00:00
parent d8a7de8d01
commit e300c41cb2
2 changed files with 4 additions and 2 deletions

View file

@ -57,6 +57,7 @@ grub_module_iterate (int (*hook) (struct grub_module_header *header))
static void
grub_load_modules (void)
{
#if 0
auto int hook (struct grub_module_header *);
int hook (struct grub_module_header *header)
{
@ -72,6 +73,7 @@ grub_load_modules (void)
}
grub_module_iterate (hook);
#endif
}
static void
@ -136,7 +138,7 @@ static void
grub_load_normal_mode (void)
{
/* Load the module. */
grub_dl_load ("normal");
// grub_dl_load ("normal");
/* Something went wrong. Print errors here to let user know why we're entering rescue mode. */
grub_print_error ();

View file

@ -330,7 +330,7 @@ grub_memalign (grub_size_t align, grub_size_t size)
case 1:
/* Unload unneeded modules. */
grub_dl_unload_unneeded ();
// grub_dl_unload_unneeded ();
count++;
goto again;