can't found kernel debian package in ubunt 22.04 iso

Asked by Mohan M

I investigate ubuntu 22.04 iso image. I can't able to find the kernel deb package in iso image. But in ubuntu 20.04 i able to found the kernel deb package (/pool/main/l/linux-signed-hwe...). In ubuntu 22.04 where it locates the kernel deb package?

Please reply if anyone knows the answer.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#2

The installer .iso files are not meant to serve as source for kernel *.deb files, but their task is just to install Ubuntu. The programs used for installing Ubuntu have changed over the course of time, and this also causes that the iso files for different Ubuntu releases have differing contents.

There are servers with the *.deb files on the internet. Why don't you use these?
e.g. the dependencies linux-image-* and linux-module-* linked from https://packages.ubuntu.com/jammy/linux-image-generic
https://launchpad.net/ubuntu/+source/linux-signed
https://launchpad.net/ubuntu/+source/linux
etc.

Revision history for this message
Mohan M (mohanselva) said :
#3

I have a doubt, If the system does not connect internet, what happens during the installation?

One thinks I understood, the kernel should be built during installation. So, where the kernel source locate in .iso image.

Actually, in our scenario prepare the script file for installing the OS from LiveCD. Please tell me where the kernel source locate and how to build to get the kernel image?

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

What exactly do you want to achieve?

Revision history for this message
Mohan M (mohanselva) said :
#5

Hi Manfred,

Good evening

As per my understanding, the latest ubuntu 22.04 didn't have a kernel
Debian package. you told if the device connects to the internet, get the
latest kernel version from the server. otherwise what is the module
currently available in /usr/lib/modules/ directory, kernel will be
generated.

My questions are as below,
1. How to generate kernel by using module(/usr/lib/modules/) in ubuntu 22.04
2. If the device is not connected internet during the ubuntu installation,
that time what happens, and where will get the kernel image.

Thanks and regards
Mohan M

On Wed, Nov 30, 2022 at 2:31 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #703930 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/703930
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What exactly do you want to achieve?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/703930
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

It seems that you are confusing the different parts of the kernel: the vmlinuz and initrd files (in the /boot directory) and the loadable kernel modules (below /usr/lib/modules/)

There is no need to create these files, they are already available in the ISO installer, just not in form of deb files.

Everything, what is needed to create a functioning Ubuntu system, is available in the ISO file. You do not need internet connection for the initial installation.

(Remark: The initrd file is automatically created by the mkinitramfs script during installation or upgrade of any kernel-related package.)

Revision history for this message
Mohan M (mohanselva) said :
#7

Hi,

Thanks for the information,

Actually, I investigating the Ubuntu 22.04 ISO file, which means before
installation.
Please tell me where the kernel is located in the ISO file, like
/pool/main/l/xxxxxx

Thanks and regards
Mohan M

On Wed, Nov 30, 2022 at 5:36 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #703930 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/703930
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> It seems that you are confusing the different parts of the kernel: the
> vmlinuz and initrd files (in the /boot directory) and the loadable
> kernel modules (below /usr/lib/modules/)
>
> There is no need to create these files, they are already available in
> the ISO installer, just not in form of deb files.
>
> Everything, what is needed to create a functioning Ubuntu system, is
> available in the ISO file. You do not need internet connection for the
> initial installation.
>
> (Remark: The initrd file is automatically created by the mkinitramfs
> script during installation or upgrade of any kernel-related package.)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/703930/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/703930
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The kernel files in the ISO installer are /casper/initrd, /casper/vmlinux and *.ko files inside the /casper/filesystem-squashfs container.

As already written above:
The only task of the installer ISO file is installing Ubuntu.
It is not designed to support extracting the kernel from it.
Why are you trying to do pick the kernel out of the ISO installer?
Whatever you do, you will get an outdated version of the kernel.

If you need the complete set of the deb packages for the kernel, the you should download them from the internet

In my opinion the current set of packages is

linux-generic-hwe-22.04
linux-headers-generic-hwe-22.04
linux-image-generic-hwe-22.04

linux-headers-5.15.0-56
linux-headers-5.15.0-56-generic
linux-image-5.15.0-56-generic
linux-modules-5.15.0-56-generic
linux-modules-extra-5.15.0-56-generic

(Note, that the last digits - currently 56 - will change, whenever an update is made available.)

You can download the packages from Launchpad (via https://launchpad.net/ubuntu/+source/linux-meta and https://launchpad.net/ubuntu/+source/linux ) or by searching on http://packages.ubuntu.com or any Ubuntu mirror server.

Can you help with this problem?

Provide an answer of your own, or ask Mohan M for more information if necessary.

To post a message you must log in.