How to get the kernel version name from downloaded Ubuntu ISO

You can loop mount first the iso file and then the squashfs file,

Create mountpoints

sudo mkdir /mnt/lp1
sudo mkdir /mnt/lp2

Mount

sudo mount -o loop focal-desktop-amd64.iso /mnt/lp1
sudo mount -o loop /mnt/lp1/casper/filesystem.squashfs /mnt/lp2

Check for the kernel version

$ sudo find /mnt/lp2 -name "linux-image-[0-9.-]*-generic"
/mnt/lp2/usr/share/doc/linux-image-5.4.0-9-generic

My focal iso file was not downloaded today, you may find a newer kernel version.

Please note that there are several files, that belong to the kernel.

Tags:

Kernel

Iso