kexec.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Baoquan He <bhe@redhat.com>
To: Philip Prindeville <philipp_subx@redfish-solutions.com>
Cc: kexec@lists.infradead.org
Subject: Re: How to detect rebooting into kexec'd kernel
Date: Sun, 12 Mar 2017 09:22:39 +0800	[thread overview]
Message-ID: <20170312012239.GB12734@x1> (raw)
In-Reply-To: <A96AC8B1-F904-4BE1-87DA-A2923599D9C7@redfish-solutions.com>

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

      reply	other threads:[~2017-03-12  1:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-11 17:40 How to detect rebooting into kexec'd kernel Philip Prindeville
2017-03-12  1:22 ` Baoquan He [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170312012239.GB12734@x1 \
    --to=bhe@redhat.com \
    --cc=kexec@lists.infradead.org \
    --cc=philipp_subx@redfish-solutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).