]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
use grub_util_exec_redirect_all to silence "moprobe efivars"
authorAndrey Borzenkov <arvidjaar@gmail.com>
Mon, 16 Dec 2013 18:41:16 +0000 (22:41 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Mon, 16 Dec 2013 18:41:16 +0000 (22:41 +0400)
modprobe -q still prints error on non-EFI. Redirect stderr instead.

Reported by Javier Vasquez.

grub-core/osdep/linux/platform.c

index ec67aad35d69bd68e2a651a6a2b75db8cb2be8dd..86561f7345d58e5f2984b3c541d957ae3f496a3a 100644 (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 ())