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:
parent
396311f0f6
commit
d770e63557
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ grub_install_get_default_x86_platform (void)
|
||||||
anyway later. So it should be safe to
|
anyway later. So it should be safe to
|
||||||
try to load it here.
|
try to load it here.
|
||||||
*/
|
*/
|
||||||
grub_util_exec ((const char * []){ "modprobe", "-q",
|
grub_util_exec_redirect_all ((const char * []){ "modprobe", "efivars", NULL },
|
||||||
"efivars", NULL });
|
NULL, NULL, "/dev/null");
|
||||||
if (is_not_empty_directory ("/sys/firmware/efi"))
|
if (is_not_empty_directory ("/sys/firmware/efi"))
|
||||||
{
|
{
|
||||||
if (is_64_kernel ())
|
if (is_64_kernel ())
|
||||||
|
|
Loading…
Reference in a new issue