On Wed, Mar 13, 2019 at 11:06 AM Pingfan Liu <piliu(a)redhat.com> wrote:
It is helpful to dump the systemd journal when kdump fails, and save times.
Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
---
kdump-lib-initramfs.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/kdump-lib-initramfs.sh b/kdump-lib-initramfs.sh
index d6c01d1..bc5d9f4 100755
--- a/kdump-lib-initramfs.sh
+++ b/kdump-lib-initramfs.sh
@@ -174,6 +174,7 @@ kdump_emergency_shell()
do_failure_action()
{
+ journalctl --full --no-pager
echo "Kdump: Executing failure action $FAILURE_ACTION"
eval $FAILURE_ACTION
}
--
2.7.4
Hi Pingfan, thanks for the effort, but I think dumping the log of
everything to console be too much, will span the console.
Will be better to dump only the logs of failed units/services.
--
Best Regards,
Kairui Song