[kexec-tools/f19] redirect stdout to stderr

Baoquan He baoquan at fedoraproject.org
Thu Jun 6 07:08:39 UTC 2013


commit a5ae1722fad28835a485355df083d90d3ced82d2
Author: dyoung at redhat.com <dyoung at redhat.com>
Date:   Fri May 24 13:30:28 2013 +0800

    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 at redhat.com>
    Acked-by: Vivek Goyal <vgoyal at redhat.com>

 dracut-kdump.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/dracut-kdump.sh b/dracut-kdump.sh
index 705afde..b7deb1f 100755
--- a/dracut-kdump.sh
+++ b/dracut-kdump.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+exec >&2
 . /lib/dracut-lib.sh
 
 set -o pipefail


More information about the scm-commits mailing list