View previous topic :: View next topic |
Author |
Message |
Kdg n00b
Joined: 20 Jul 2017 Posts: 10 Location: Upstate NY
|
Posted: Mon Feb 12, 2018 2:03 pm Post subject: [Solved] Kexec does not boot crash kernel |
|
|
So yeah, exactly what it says on the tin.
Whenever my system has a kernel panic Kexec never boots the crash kernel.
Recently I found that CK2 would cause a panic while I played it. While trying to acquire information on this panic I tried to set up Kexec.
Kexec never starts the kernel though. Not while playing CK2 or when using a manually induced panic.
Contents of /etc/local.d/kdump.start:
Code: |
#!/bin/bash
kexec -p /boot/kernel-genkernel-x86_64-4.9.76-gentoo-r1 --initrd=/boot/initramfs-genkernel-x86_64-4.9.76-gentoo-r1 \
--reset-vga --console-vga --append "root=/dev/sda2 single irqpoll maxcpus=1 reset_devices softlevel=kdump nokaslr"
|
I THINK I configured the kernel properly.
I saved the config with a directory's name though so maybe it didn't take?[/code] _________________ I don't know what to do for a signature here but I feel like I have to put something.
Last edited by Kdg on Wed Feb 14, 2018 2:28 pm; edited 1 time in total |
|
Back to top |
|
|
Kdg n00b
Joined: 20 Jul 2017 Posts: 10 Location: Upstate NY
|
Posted: Mon Feb 12, 2018 4:02 pm Post subject: |
|
|
I can confirm that the kernel was built with the required options, I just built a custom kernel without genkernel and the issue still persists. _________________ I don't know what to do for a signature here but I feel like I have to put something. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Tue Feb 13, 2018 2:54 am Post subject: |
|
|
Normally, I would not respond only to ask this, but since this is already off the list of unanswered posts, I will ask it:
Obvious question: are you sure kdump.start executed successfully? |
|
Back to top |
|
|
Kdg n00b
Joined: 20 Jul 2017 Posts: 10 Location: Upstate NY
|
Posted: Wed Feb 14, 2018 2:22 pm Post subject: |
|
|
I believe it is loading.
Kexec doesn't output an error and returns 0 at least.
I should note that I'm using the version from Git. Before that I used the repo version.
I had the same issue from https://bugzilla.redhat.com/show_bug.cgi?id=1432322 and updating seems to have fixed it.
Thanks for the help! _________________ I don't know what to do for a signature here but I feel like I have to put something. |
|
Back to top |
|
|
Kdg n00b
Joined: 20 Jul 2017 Posts: 10 Location: Upstate NY
|
Posted: Wed Feb 14, 2018 2:27 pm Post subject: |
|
|
I've fixed it!
It turns out that I had to add --elf64-core-headers for the kernel to boot.
It's a bit strange that the wiki didn't mention this.
Anyway, thank you for the help. _________________ I don't know what to do for a signature here but I feel like I have to put something. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Thu Feb 15, 2018 3:14 am Post subject: |
|
|
Please edit the relevant Wiki page to inform future readers of this requirement. |
|
Back to top |
|
|
|