From 8ab66d6a685ea117b61432891179defc38a0b5d1 Mon Sep 17 00:00:00 2001 From: "dyoung@redhat.com" Date: Fri, 24 May 2013 13:30:28 +0800 Subject: [PATCH] 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 Acked-by: Vivek Goyal --- dracut-kdump.sh | 1 + 1 file changed, 1 insertion(+) 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