Skip to content

Log to ttys0 #95

Merged
merged 7 commits into from
Aug 7, 2019
Merged

Log to ttys0 #95

merged 7 commits into from
Aug 7, 2019

Conversation

donald
Copy link
Collaborator

@donald donald commented Aug 2, 2019

Add console=ttyS0... to kernel command line to enable logging f the kernel ring buffer (dmesg) to serial 0 as well. Tested on sigusr2.

Add "console=ttyS0,115200n8" to the kernel command line to get kernel
ring buffer logging to both serials.
When we use `mxgrub --reboot` we don't want to reuse the previous kernel
command line.

Generate a new command line for kexec.

This way, changes we make to $KERNEL_PARAMETER in this script can be activated
by `mxgrub --reboot` as well.
Import existing crashkernel.service into repository.
Add "console=ttyS0,115200n8" to crashkernel commandline as we did for
the regular kernel in mxgrub. Also specifiy full command line here
instead of appending to the command line of the crashing kernel to get a
better defined state.
Add ExecStop to unload the panic kernel.

"systemctl stop crashkernel" can be used to disable the panic reboot and
free the memory.

"systemctl restart crashkernel" can be used to reload the panic kernel.
@donald donald merged commit 837e755 into master Aug 7, 2019
@donald donald mentioned this pull request Aug 8, 2019
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant