]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
authorColin Watson <cjwatson@ubuntu.com>
Wed, 26 Sep 2012 12:12:20 +0000 (13:12 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 26 Sep 2012 12:12:20 +0000 (13:12 +0100)
errors from grub-probe to /dev/null, not stdout.

ChangeLog
util/grub-mkconfig_lib.in

index d81a9a6bf4e15ee144c82b79858ce6106967c148..c43f8a47939534a337fadcbe41a7f9d32464f0f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-26  Colin Watson  <cjwatson@ubuntu.com>
+
+       * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
+       errors from grub-probe to /dev/null, not stdout.
+
 2012-09-26  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
index 8f21eb26d5ae192fe98245c0cb1e0350db742a38..35748398342646c2ea94fbbefd35624ef037a46c 100644 (file)
@@ -65,7 +65,7 @@ is_path_readable_by_grub ()
 
   # ... or if we can't figure out the abstraction module, for example if
   # memberlist fails on an LVM volume group.
-  if abstractions="`"${grub_probe}" -t abstraction "$path"`" 2>&1 ; then 
+  if abstractions="`"${grub_probe}" -t abstraction "$path"`" 2> /dev/null ; then 
       :
   else
     return 1