我正在查看该search
命令的官方GRUB2文档,如http://www.gnu.org/software/grub/manual/grub.html#index-search上所示
Command: search [--file|--label|--fs-uuid] [--set [var]] [--no-floppy] name
Search devices by file (-f, --file), filesystem label (-l, --label),
or filesystem UUID (-u, --fs-uuid).
If the --set option is used, the first device found is set as the
value of environment variable var. The default variable is ‘root’.
The --no-floppy option prevents searching floppy devices, which can be slow.
The ‘search.file’, ‘search.fs_label’, and ‘search.fs_uuid’ commands are aliases
for ‘search --file’, ‘search --label’, and ‘search --fs-uuid’ respectively.
在5.3节中,有许多示例
menuentry "FreeBSD" {
insmod zfs
search --set=root --label freepool --hint hd0,msdos7
...
}
--hint
除示例外,该选项似乎没有记载。它到底是做什么的?参数的确切格式是什么?