2009-09-19 Colin Watson <cjwatson@ubuntu.com>

* util/grub.d/30_os-prober.in: Don't throw away stderr from
	  os-prober. Under normal operation, it does not print anything to
	  stderr; if it does, we need to debug it, and throwing away stderr
	  makes that excessively difficult.
This commit is contained in:
cjwatson 2009-09-19 14:15:00 +00:00
parent be94a509bb
commit a83d079b1e
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-09-19 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/30_os-prober.in: Don't throw away stderr from
os-prober. Under normal operation, it does not print anything to
stderr; if it does, we need to debug it, and throwing away stderr
makes that excessively difficult.
2009-09-16 Vladimir Serbinenko <phcoder@gmail.com> 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
* mmap/mmap.c (grub_cmd_badram): Fix off-by-one error. * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.

View file

@ -31,7 +31,7 @@ if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev
exit 0 exit 0
fi fi
OSPROBED="`os-prober 2> /dev/null | tr ' ' '^' | paste -s -d ' '`" OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
if [ -z "${OSPROBED}" ] ; then if [ -z "${OSPROBED}" ] ; then
# empty os-prober output, nothing doing # empty os-prober output, nothing doing
exit 0 exit 0