use grub_util_exec_redirect_all to silence "moprobe efivars"

modprobe -q still prints error on non-EFI. Redirect stderr instead.

Reported by Javier Vasquez.
This commit is contained in:
Andrey Borzenkov 2013-12-16 22:41:16 +04:00
parent 396311f0f6
commit d770e63557

View file

@ -69,8 +69,8 @@ grub_install_get_default_x86_platform (void)
anyway later. So it should be safe to
try to load it here.
*/
grub_util_exec ((const char * []){ "modprobe", "-q",
"efivars", NULL });
grub_util_exec_redirect_all ((const char * []){ "modprobe", "efivars", NULL },
NULL, NULL, "/dev/null");
if (is_not_empty_directory ("/sys/firmware/efi"))
{
if (is_64_kernel ())