#include <grub/i18n.h>
void
-FUNC_NAME (const char *key, const char *var, int no_floppy)
+FUNC_NAME (const char *key, const char *var, int no_floppy,
+ const char **hints, unsigned nhints)
{
int count = 0;
- char *buf = NULL;
grub_fs_autoload_hook_t saved_autoload;
auto int iterate_device (const char *name);
/* Retry with autoload if nothing found. */
if (grub_errno == GRUB_ERR_NONE && count == 0)
- grub_device_iterate (iterate_device);
+ try ();
}
else
- grub_device_iterate (iterate_device);
+ try ();
- grub_free (buf);
-
if (grub_errno == GRUB_ERR_NONE && count == 0)
grub_error (GRUB_ERR_FILE_NOT_FOUND, "no such device: %s", key);
}
{
cmd =
grub_register_command (COMMAND_NAME, grub_cmd_do_search,
- "NAME [VARIABLE] [HINTS]",
- "Search devices by " SEARCH_TARGET "."
- " If VARIABLE is specified, "
- "the first device found is set to a variable.");
- N_("NAME [VARIABLE]"),
++ N_("NAME [VARIABLE] [HINTS]"),
+ HELP_MESSAGE);
}
#ifdef DO_SEARCH_FILE