Disable calls to loadable modules (not supported yet)
This commit is contained in:
parent
d8a7de8d01
commit
e300c41cb2
2 changed files with 4 additions and 2 deletions
|
@ -57,6 +57,7 @@ grub_module_iterate (int (*hook) (struct grub_module_header *header))
|
||||||
static void
|
static void
|
||||||
grub_load_modules (void)
|
grub_load_modules (void)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
auto int hook (struct grub_module_header *);
|
auto int hook (struct grub_module_header *);
|
||||||
int hook (struct grub_module_header *header)
|
int hook (struct grub_module_header *header)
|
||||||
{
|
{
|
||||||
|
@ -72,6 +73,7 @@ grub_load_modules (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
grub_module_iterate (hook);
|
grub_module_iterate (hook);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -136,7 +138,7 @@ static void
|
||||||
grub_load_normal_mode (void)
|
grub_load_normal_mode (void)
|
||||||
{
|
{
|
||||||
/* Load the module. */
|
/* 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. */
|
/* Something went wrong. Print errors here to let user know why we're entering rescue mode. */
|
||||||
grub_print_error ();
|
grub_print_error ();
|
||||||
|
|
|
@ -330,7 +330,7 @@ grub_memalign (grub_size_t align, grub_size_t size)
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
/* Unload unneeded modules. */
|
/* Unload unneeded modules. */
|
||||||
grub_dl_unload_unneeded ();
|
// grub_dl_unload_unneeded ();
|
||||||
count++;
|
count++;
|
||||||
goto again;
|
goto again;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue