* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect

errors from grub-probe to /dev/null, not stdout.
This commit is contained in:
Colin Watson 2012-09-26 13:12:20 +01:00
parent b78c312722
commit 0d35da3f2b
2 changed files with 6 additions and 1 deletions

View File

@ -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

View 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