Kernel source of currently running kernel  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
decuser
Posts: 38
Joined: Sun Feb 10, 2019 11:37 pm

Kernel source of currently running kernel

#1 Post by decuser »

I can't find the source for the kernel I have installed. So, I have some questions. First the diff:

Code: Select all

uname -a:

Linux odin 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

Code: Select all

sudo apt search linux-source

linux-source/stable-security,stable-security 6.1.69-1 all
  Linux kernel source (meta-package)

linux-source-6.1/stable-security,stable-security 6.1.69-1 all
  Linux kernel source for version 6.1 with Debian patches
So, it looks like source is available for 6.1.69-1, but not 6.1.0-17. Here are my questions:

1. Am I approaching the search correctly or should I be looking differently?
2. I regularly sudo apt update && sudo apt full-upgrade, why is my kernel not matching the version in the repos (am I behind)?
3. Does MX modify the kernel, or is the version in the debian version in the repo what eventually finds its way into the MX release?

Thanks!

decuser
Posts: 38
Joined: Sun Feb 10, 2019 11:37 pm

Re: Kernel source of currently running kernel

#2 Post by decuser »

OK. I see that my kernel is actually matching what's in the repo. It begs the question, why is uname reporting '6.1.0-17 and 6.1.69-1"? But it answers my first two questions, so if you know the answer to the uname thing, great, but I'm still wondering about whether or not MX modifies the kernel source.

User avatar
Stevo
Developer
Posts: 14448
Joined: Fri Dec 15, 2006 7:07 pm

Re: Kernel source of currently running kernel  [Solved]

#3 Post by Stevo »

Those particular kernels are coming directly from the Debian repository. Yes, Debian does apply many patches to their kernels, in addition to the configuration options. Up to 6.6, Debian kernels have two versions in one--the 6.1.0-17 means it's the seventeenth Debian revision of the LTS 6.1 kernel, this time based upon the 6.1.69 kernel source.

The source code package is versioned, so you'd search for "linux-source-6.1".
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

decuser
Posts: 38
Joined: Sun Feb 10, 2019 11:37 pm

Re: Kernel source of currently running kernel

#4 Post by decuser »

@Stevo Great answer, 2 in 1, who'd have thunk it? :)

Post Reply

Return to “MX Help”