redirect stdout to stderr

dracut pre-pivot systemd service has below settings:
StandardOutput=syslog
StandardError=syslog+console

Thus kdump_pre/kdump_post output will disapear. Because the output is useful
for users, in case any failure user can watch the console log to see what's
wrong.

Dracut/Systemd people do not want to change the service settings.
So let's redirect the stdout to stderr fo fix it.

Per vivek: redirect whole kdump.sh stdout to stderr instead of only fix
for kdump_pre and kdump_post.

Tested on F19.

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
dyoung@redhat.com 2013-05-24 13:30:28 +08:00 committed by Baoquan He
parent 6193fc969e
commit 8ab66d6a68
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/bin/sh
exec >&2
. /lib/dracut-lib.sh
set -o pipefail