* How to detect rebooting into kexec'd kernel
@ 2017-03-11 17:40 Philip Prindeville
2017-03-12 1:22 ` Baoquan He
0 siblings, 1 reply; 2+ messages in thread
From: Philip Prindeville @ 2017-03-11 17:40 UTC (permalink / raw)
To: kexec
How do you tell you’re in the new kernel?
There doesn’t seem to be anything in /sys/kernel/ that indicates this.
I could parse /proc/cmdline for the absence of “crashkernel=“ for instance, but there are obvious pitfalls to that.
You’d think there would be a way for the kexec’d kernel to maintain some sort of marker making it obvious that this is the kexec’d kernel (especially if your system kernel and your crash kernel are the same, and only the cmdline arguments change).
Thanks,
-Philip
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to detect rebooting into kexec'd kernel
2017-03-11 17:40 How to detect rebooting into kexec'd kernel Philip Prindeville
@ 2017-03-12 1:22 ` Baoquan He
0 siblings, 0 replies; 2+ messages in thread
From: Baoquan He @ 2017-03-12 1:22 UTC (permalink / raw)
To: Philip Prindeville; +Cc: kexec
For kdump kernel, check /proc/vmcore
kexec kernel, no way.
On 03/11/17 at 10:40am, Philip Prindeville wrote:
> How do you tell you’re in the new kernel?
>
> There doesn’t seem to be anything in /sys/kernel/ that indicates this.
>
> I could parse /proc/cmdline for the absence of “crashkernel=“ for instance, but there are obvious pitfalls to that.
>
> You’d think there would be a way for the kexec’d kernel to maintain some sort of marker making it obvious that this is the kexec’d kernel (especially if your system kernel and your crash kernel are the same, and only the cmdline arguments change).
>
> Thanks,
>
> -Philip
>
>
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-12 1:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 17:40 How to detect rebooting into kexec'd kernel Philip Prindeville
2017-03-12 1:22 ` Baoquan He
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox