Since mid leap 15.3 they added 150400 to the kernel listed under “last reboot”.
this gets rid of the end of the kernel number, the important part.
anyway to list more info so we can see what kernel version on a reboot?
example:
reboot system boot 5.14.21-150400.2 Wed Mar 29 17:43 - 17:59 (26+00:16
the problem is you can no longer tell what kernel it is.
currently I’m at (5.14.21-150400.24.60-default)
but the “last reboot” command truncates it to 5.14.21-150400.2, leaving off the 4-60
which is what tells you the current kernel.
thanks I can find it in /proc/version also. my point is when you do a “last reboot” it doesn’t show the full kernel version anymore. which is nice to see when your system has been reboot because of a kernel update.
BTW, it would have been better when you would have SHOWN something instead (or added to) your story telling:
henk@boven:~> last reboot | head
reboot system boot 5.14.21-150400.2 Thu Apr 27 09:10 still running
reboot system boot 5.14.21-150400.2 Wed Apr 26 08:23 - 22:41 (14:17)
reboot system boot 5.14.21-150400.2 Tue Apr 25 11:14 - 22:26 (11:11)
reboot system boot 5.14.21-150400.2 Tue Apr 25 08:48 - 10:39 (01:50)
reboot system boot 5.14.21-150400.2 Tue Apr 25 08:34 - 08:46 (00:12)
reboot system boot 5.14.21-150400.2 Mon Apr 24 08:00 - 22:31 (14:31)
reboot system boot 5.14.21-150400.2 Sun Apr 23 11:25 - 22:56 (11:30)
reboot system boot 5.14.21-150400.2 Sat Apr 22 07:47 - 21:36 (13:48)
reboot system boot 5.14.21-150400.2 Fri Apr 21 07:30 - 07:41 (00:11)
reboot system boot 5.14.21-150400.2 Thu Apr 20 19:34 - 22:28 (02:54)
henk@boven:~>
Never assume that your readers do the same thing you do on a regular base, or in the same way, or that they even know the command you used.
Nevertheless people may be of help when they know what you are doing, expecting and getting instead of your expectation.
Kernel version is written in the host name field of wtmp record.
andrei@leap154:~> last --nohostname reboot
reboot system boot Thu Apr 13 14:16 still running
reboot system boot Mon Apr 10 12:37 still running
reboot system boot Wed Apr 5 17:26 still running