LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2016, 10:40 PM   #1
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Slackware-current 17-JAN-2016 kernel naming conventions


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)!
 
Old 01-17-2016, 11:29 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 01-18-2016, 01:30 AM   #3
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
D'OH! "Use the source, Luke."
 
Old 01-18-2016, 07:06 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by kingbeowulf View Post
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.
 
Old 01-18-2016, 08:27 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by kikinovak View Post
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.
 
3 members found this post helpful.
Old 01-18-2016, 10:41 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by Alien Bob View Post
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

Last edited by GazL; 01-18-2016 at 10:42 AM.
 
Old 01-18-2016, 01:02 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
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.
 
2 members found this post helpful.
Old 01-18-2016, 01:18 PM   #8
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by volkerdi View Post
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".
 
Old 01-18-2016, 07:16 PM   #9
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
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.
 
  


Reply

Tags
current, intel n280, msi netbook



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Current Sun Jan 17 07:24:08 UTC 2016 burdi01 Slackware 1 01-17-2016 11:14 PM
The Naming Conventions nodisk Linux - Newbie 6 12-15-2005 05:15 AM
Java Naming Conventions logosys Programming 0 11-10-2005 08:21 PM
Naming conventions ??? bigjohn Linux - Newbie 1 12-07-2003 10:25 AM
File Naming Conventions mooreted Linux - Software 4 08-23-2003 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration