(search_file): Improve error message.
(GRUB_MOD_INIT(search)): Add missing `-n' to help output.
This commit is contained in:
parent
c952cf92a1
commit
cc3752ad73
2 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* commands/search.c (grub_cmd_search): Macroify hardcoded args[]
|
* commands/search.c (grub_cmd_search): Macroify hardcoded args[]
|
||||||
indexes. Check for -f explicitly.
|
indexes. Check for -f explicitly.
|
||||||
|
(search_file): Improve error message.
|
||||||
|
(GRUB_MOD_INIT(search)): Add missing `-n' to help output.
|
||||||
|
|
||||||
2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
|
2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ search_file (const char *key, const char *var, int no_floppy)
|
||||||
grub_free (buf);
|
grub_free (buf);
|
||||||
|
|
||||||
if (grub_errno == GRUB_ERR_NONE && count == 0)
|
if (grub_errno == GRUB_ERR_NONE && count == 0)
|
||||||
grub_error (GRUB_ERR_FILE_NOT_FOUND, "no such device");
|
grub_error (GRUB_ERR_FILE_NOT_FOUND, "no such file: %s", key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static grub_err_t
|
static grub_err_t
|
||||||
|
@ -196,7 +196,7 @@ GRUB_MOD_INIT(search)
|
||||||
cmd =
|
cmd =
|
||||||
grub_register_extcmd ("search", grub_cmd_search,
|
grub_register_extcmd ("search", grub_cmd_search,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
"search [-f|-l|-u|-s] NAME",
|
"search [-f|-l|-u|-s|-n] NAME",
|
||||||
"Search devices by file, filesystem label or filesystem UUID."
|
"Search devices by file, filesystem label or filesystem UUID."
|
||||||
" If --set is specified, the first device found is"
|
" If --set is specified, the first device found is"
|
||||||
" set to a variable. If no variable name is"
|
" set to a variable. If no variable name is"
|
||||||
|
|
Loading…
Reference in a new issue