Interestingly, the openSUSE kernels show up only with the x.y.z version number, and no extra release information.
The reason for this is that kconfigs fetches the version from the top of the kernel config file, for example:
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.12.0-105.51.5.el10uek.x86_64 Kernel Configuration
But for openSUSE:
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.17.7 Kernel Configuration
The RPM name for this kernel is kernel-default-6.17.7-1.1.x86_64.rpm, and I'm guessing that if you run uname -r you would get 6.17.7-1.1.x86_64 (though I am testing it out in a bit). It turns out the extra comes from the CONFIG_LOCALVERSION. I haven't seen any other kernel that does it this way. I could append the CONFIG_LOCALVERSION to the version from the top of the config file, which seems like it would work.
https://oracle.github.io/kconfigs/?config=UTS_RELEASE&config=LOCALVERSION
The only other kernels with a LOCALVERSION set are a few android kernels.
Interestingly, the openSUSE kernels show up only with the
x.y.zversion number, and no extra release information.The reason for this is that kconfigs fetches the version from the top of the kernel config file, for example:
But for openSUSE:
The RPM name for this kernel is
kernel-default-6.17.7-1.1.x86_64.rpm, and I'm guessing that if you rununame -ryou would get6.17.7-1.1.x86_64(though I am testing it out in a bit). It turns out the extra comes from theCONFIG_LOCALVERSION. I haven't seen any other kernel that does it this way. I could append theCONFIG_LOCALVERSIONto the version from the top of the config file, which seems like it would work.https://oracle.github.io/kconfigs/?config=UTS_RELEASE&config=LOCALVERSION
The only other kernels with a LOCALVERSION set are a few android kernels.