> Hmm ... I'm not sure we really need it at all (in > grub_install_get_default_x86_platform). Directory /sys/firmware/efi is > not created by module efivars and we check whether this directory > exists. I think it can safely be removed.
OK, it was changed relatively recently so we still need modprobe but just need to silence it like it was before in shell code. What about the following? Andrey Borzenkov (2): consolidate grub_util_exec code use grub_util_exec_redirect_all to silence "moprobe efivars" grub-core/osdep/linux/platform.c | 4 +- grub-core/osdep/unix/exec.c | 134 +++++++++++++++++++-------------------- include/grub/emu/exec.h | 3 + include/grub/osdep/exec_unix.h | 39 ------------ 4 files changed, 70 insertions(+), 110 deletions(-) delete mode 100644 include/grub/osdep/exec_unix.h -- 1.8.4 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel