Hide errors during loading of efivars module
authorMichael Prokop <mika@grml.org>
Fri, 15 Jul 2016 10:16:51 +0000 (12:16 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 15 Jul 2016 10:16:51 +0000 (12:16 +0200)
If efivars can't be loaded then EFI support isn't present,
but don't display the error message of the module loading
to the user.

grml-debootstrap

index 9a67754..13d6536 100755 (executable)
@@ -794,7 +794,7 @@ efi_support() {
     return 0
   fi
 
-  if modprobe efivars ; then
+  if modprobe efivars &>/dev/null ; then
     einfo "EFI support enabled now." ; eend 0
     return 0
   fi