SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just nitpicking a bit, but the kernel files and packages are labeled with version "4.4" in /boot but /etc/lib/modules are labeled "4.4.0" - a bit confusing when looking in /boot while setting up to run mkinitrd
In other news: this beta is even faster and slicker than prior current in the old MSI netbok (Intel Atom N280)!
This is the way the kernel outputs by default. If you untar the kernel source, it'll do it to linux-4.4/, but when you go to install the modules, it'll put it in 4.4.0/. I'd imagine the naming in /boot is based off the linux source folder, not the modules folder.
But, by the time the stable release is put out, I'd imagine Pat will be using the latest point release of the 4.4 series, so the issue likely won't be visible in 14.2.
Just nitpicking a bit, but the kernel files and packages are labeled with version "4.4" in /boot but /etc/lib/modules are labeled "4.4.0" - a bit confusing when looking in /boot while setting up to run mkinitrd
In other news: this beta is even faster and slicker than prior current in the old MSI netbok (Intel Atom N280)!
I had the same thought after upgrading the kernel from 4.1.15 to 4.4.0. I took a look in /boot and saw that the kernel was named "4.4", but when I manually edited mkinitrd.conf and put "4.4" in the version line, mkinitrd -F threw back an error. Of course I figured it out later, but I couldn't help thinking something like: hey, here's one of Slackware's extremely rare inconsistencies.
hey, here's one of Slackware's extremely rare inconsistencies.
There is no inconsistency.
The source tarball is called "linux-4.4.tar.xz" which determines the package version however the running kernel announces itself as 4.4.0.
There is no inconsistency.
The source tarball is called "linux-4.4.tar.xz" which determines the package version however the running kernel announces itself as 4.4.0.
... except, then you get this: /boot/vmlinuz-huge-4.4, and /lib/modules/4.4.0, which is clearly an inconsistency between the components that combine at runtime to make up the kernel.
Regardless, of what the package itself is called, it'd probably be worth adding $SUBLEVEL to at least the vmlinuz filename just to make it match its run-time modules directory name (and uname -r). Though, I doubt Slackware will ever ship with a .0? so, its somewhat of an academic issue (but still a trivial fix).
I've been using my own kernel packaging and naming scheme for a few years now, and this was one of the things I decided I wanted to fix. I run a .0 far more often that Slackware does after all.
For anyone interested, this is how my locally built kernel packages look:
Code:
PACKAGE NAME: kernel-4.4.y-smp-4.4.0-i686-2_local
COMPRESSED PACKAGE SIZE: 4.9M
UNCOMPRESSED PACKAGE SIZE: 10M
PACKAGE LOCATION: ./kernel-4.4.y-smp-4.4.0-i686-2_local.txz
PACKAGE DESCRIPTION:
kernel-4.4.y-smp: Kernel 4.4.0-smp
kernel-4.4.y-smp:
kernel-4.4.y-smp: This is an all-in-one package that contains
kernel-4.4.y-smp: a linux kernel, its modules and its build directory.
kernel-4.4.y-smp:
kernel-4.4.y-smp: Package includes:
kernel-4.4.y-smp: /boot/vmlinuz-4.4.0-smp
kernel-4.4.y-smp: /boot/System.map-4.4.0-smp
kernel-4.4.y-smp: /lib/modules/4.4.0-smp/...
kernel-4.4.y-smp: /usr/obj/4.4.0-smp/...
kernel-4.4.y-smp:
/usr/obj/... is the out-of-tree build directory I use when building the kernel, which helps keep the source pristine. Source is in /usr/src/linux-4.4.y and is a single-branch shallow git clone from kernel.org's stable.git
The inconsistency comes from upstream. And yes, I wish they would release such kernel tarballs as linux-4.4.0.tar.xz, not linux-4.4.tar.xz. But I'm not about to repack it (and lose the GPG sig) just to fix that only for the .0 that won't last long in -current.
The inconsistency comes from upstream. And yes, I wish they would release such kernel tarballs as linux-4.4.0.tar.xz, not linux-4.4.tar.xz. But I'm not about to repack it (and lose the GPG sig) just to fix that only for the .0 that won't last long in -current.
Thanks for the clarification. I guess this can be filed under "first world problems".
Marking as "solved" so as to not get into a theological discussion. I was just taken by surprise during testing on one of the laptops and I didn't think to check the original source archive; it has been so long that I got an error running mkinitrd that I was befuddle (getting old I guess). As our BDFL says: it won't last long.
Let's just blame L. Torvalds - he yells at enough people anyway so should be able to take it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.