Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #242929

telling if we've actually booted from /boot/xen-4.14-amd64.gz

From Tim Woodall <debianuser@woodall.me.uk>
Newsgroups linux.debian.user
Subject telling if we've actually booted from /boot/xen-4.14-amd64.gz
Date 2021-12-10 23:20 +0100
Message-ID <DsWpb-3ET-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Is there a simple way to tell if the kernel/hypervisor that was used to
boot is the one currently installed in /boot.

I have a script that emails me when it detects a mismatch and it's
broken with the latest bullseye xen hypervisor.

I was grepping for major.minor.release (from /sys/hypervisor/version)
but that gives 4.14.4-pre while strings on the (uncompressed) hypervisor gives
4.14.3+32-g9de3671772-1~deb11u1

/sys/hypervisor/compilation/compile_date:Thu Dec  2 20:45:55 UTC 2021
seems to match the timestamp on the files in /boot. Is that something I
can rely on?

Is there a good way to do what I want (which is to avoid missing an automatic
upgrade and then not rebooting for months)?

Automatic rebooting on upgrade is not an option as I only want to reboot
when I have time to deal with any issues if it fails to come up for any
reason.

So far my script to check the kernel version is ok, only the hypervisor
check has failed with the recent update. For the kernel I grep for uname
-r and uname -v.

This update has fixed my power-off problem though :-)

Tim.

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

telling if we've actually booted from /boot/xen-4.14-amd64.gz Tim Woodall <debianuser@woodall.me.uk> - 2021-12-10 23:20 +0100
  Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Charles Curley <charlescurley@charlescurley.com> - 2021-12-11 04:40 +0100
    Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Tim Woodall <debianuser@woodall.me.uk> - 2021-12-11 07:00 +0100
      Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Charles Curley <charlescurley@charlescurley.com> - 2021-12-11 19:10 +0100
        Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Andrei POPESCU <andreimpopescu@gmail.com> - 2021-12-12 09:10 +0100
    Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Charles Curley <charlescurley@charlescurley.com> - 2021-12-11 22:00 +0100
  Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Andy Smith <andy@strugglers.net> - 2021-12-12 02:30 +0100
    Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Tim Woodall <debianuser@woodall.me.uk> - 2021-12-12 08:20 +0100
      Re: telling if we've actually booted from /boot/xen-4.14-amd64.gz Tim Woodall <debianuser@woodall.me.uk> - 2021-12-12 16:20 +0100

csiph-web