From: Andrey Borzenkov Date: Mon, 16 Dec 2013 18:41:16 +0000 (+0400) Subject: use grub_util_exec_redirect_all to silence "moprobe efivars" X-Git-Tag: grub-2.02-beta1~58^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d770e63557f461060d16d7c4377fc6455219ee34;p=thirdparty%2Fgrub.git 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. --- diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c index ec67aad35..86561f734 100644 --- a/grub-core/osdep/linux/platform.c +++ b/grub-core/osdep/linux/platform.c @@ -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 ())