mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
features support
This commit is contained in:
1 parent
b38a498394
commit
5bfb6e71e8
1 file changed
+10
-2
+10
-2
@@ -471,9 +471,14 @@ grub_mini_cmd_clear (struct grub_command *cmd __attribute__ ((unused)),
|
|||||||
static grub_command_t cmd_clear;
|
static grub_command_t cmd_clear;
|
||||||
|
|
||||||
static void (*grub_xputs_saved) (const char *str);
|
static void (*grub_xputs_saved) (const char *str);
|
||||||
|
static const char *features[] = {
|
||||||
|
"feature_chainloader_bpb", "feature_ntldr"
|
||||||
|
};
|
||||||
|
|
||||||
GRUB_MOD_INIT(normal)
|
GRUB_MOD_INIT(normal)
|
||||||
{
|
{
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
/* Previously many modules depended on gzio. Be nice to user and load it. */
|
/* Previously many modules depended on gzio. Be nice to user and load it. */
|
||||||
grub_dl_load ("gzio");
|
grub_dl_load ("gzio");
|
||||||
|
|
||||||
@@ -516,8 +521,11 @@ GRUB_MOD_INIT(normal)
|
|||||||
grub_env_set ("color_normal", "white/black");
|
grub_env_set ("color_normal", "white/black");
|
||||||
grub_env_set ("color_highlight", "black/white");
|
grub_env_set ("color_highlight", "black/white");
|
||||||
|
|
||||||
grub_env_set ("grub_feature_chainloader_bpb", "--bpb");
|
for (i = 0; i < ARRAY_SIZE (features); i++)
|
||||||
grub_env_export ("grub_feature_chainloader_bpb");
|
{
|
||||||
|
grub_env_set (features[i], "y");
|
||||||
|
grub_env_export (features[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GRUB_MOD_FINI(normal)
|
GRUB_MOD_FINI(normal)
|
||||||
|
|||||||
Reference in new issue
Block a user