Lack of full kernel in Last reboot command

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

It is not at all clear what you are trying to say.

Kernel 5.14.21-150400.2 appears to be a kernel from Leap 15.4, so you possibly have messed up repos. What’s the output from

zypper lr -d

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.

You can use:

uname -a

to find the full version.

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.

There’s not much we can do about that. It is due to the package naming conventions being used.

I guess you could open a bug report to see if that gets someone’s attention.

thanks ill look into that.

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.

last -w reboot

Well, that is what the OP more or less suggested :frowning:

henk@boven:~> last -w reboot | head
reboot   system boot  5.14.21-150400.24.60-default Thu Apr 27 09:10   still running
reboot   system boot  5.14.21-150400.24.60-default Wed Apr 26 08:23 - 22:41  (14:17)
reboot   system boot  5.14.21-150400.24.60-default Tue Apr 25 11:14 - 22:26  (11:11)
reboot   system boot  5.14.21-150400.24.60-default Tue Apr 25 08:48 - 10:39  (01:50)
reboot   system boot  5.14.21-150400.24.55-default Tue Apr 25 08:34 - 08:46  (00:12)
reboot   system boot  5.14.21-150400.24.55-default Mon Apr 24 08:00 - 22:31  (14:31)
reboot   system boot  5.14.21-150400.24.55-default Sun Apr 23 11:25 - 22:56  (11:30)
reboot   system boot  5.14.21-150400.24.55-default Sat Apr 22 07:47 - 21:36  (13:48)
reboot   system boot  5.14.21-150400.24.55-default Fri Apr 21 07:30 - 07:41  (00:11)
reboot   system boot  5.14.21-150400.24.55-default Thu Apr 20 19:34 - 22:28  (02:54)
henk@boven:~> 

That may satisfy what the OP wants to see indeed.

It is however not something the man page mentions:

-w, --fullnames
Display full user names and domain names in the output.

as the full kernel version is of course neither a user name, nor a domain name. :wink:

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

And of course the current kernel:

henk@boven:~> uname -r
5.14.21-150400.24.60-default
henk@boven:~>