Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Kexec does not boot crash kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Kdg
n00b
n00b


Joined: 20 Jul 2017
Posts: 10
Location: Upstate NY

PostPosted: Mon Feb 12, 2018 2:03 pm    Post subject: [Solved] Kexec does not boot crash kernel Reply with quote

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
View user's profile Send private message
Kdg
n00b
n00b


Joined: 20 Jul 2017
Posts: 10
Location: Upstate NY

PostPosted: Mon Feb 12, 2018 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13855

PostPosted: Tue Feb 13, 2018 2:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Kdg
n00b
n00b


Joined: 20 Jul 2017
Posts: 10
Location: Upstate NY

PostPosted: Wed Feb 14, 2018 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kdg
n00b
n00b


Joined: 20 Jul 2017
Posts: 10
Location: Upstate NY

PostPosted: Wed Feb 14, 2018 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13855

PostPosted: Thu Feb 15, 2018 3:14 am    Post subject: Reply with quote

Please edit the relevant Wiki page to inform future readers of this requirement.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum