Score:2

Is it possible to have linux kernel >5.4 in the netboot mini.iso of Ubuntu 20.04 LTS?

zw flag

I see that latest netboot mini.iso of Ubuntu 20.04 LTS (Focal Fossa) still has kernel version 5.4.0-42 which is quiet old.

Is it possible to have the same netboot mini.iso with newer kernel, for example HWE 5.13?

Score:5
zw flag

Yes, it possible by building our own mini.iso from sources. The build process should be run inside Ubuntu 20.04 LTS on real hardware, VM or in Docker with enabled deb-src lines in /etc/apt/sources.list.

Exact list of commands is the following.

# sudo sed -i 's/# deb-src/deb-src/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install fakeroot
sudo apt-get build-dep debian-installer

cd ~/Downloads
apt-get source debian-installer
cd debian-installer-20101020ubuntu614.3
cd build

# change kernel version only for amd64 which we are currently running
sed -i "s/BASEVERSION = 5.4.0-42/BASEVERSION = 5.13.0-28/g" config/amd64.cfg

make reallyclean
fakeroot make build_netboot

The resulting ISO will be available on the dest/netboot/mini.iso path, it will use 5.13 HWE kernel.
So it will compatible with wider spectrum of hardware on first boot time.

Important: to install HWE kernel 5.13 into target system one should boot using Advanced OptionsExpert Install, follow wizard as usual and then on the Install the base system screen select linux-generic-hwe-20.04 kernel to install

d-i, expert install, select linux-generic-hwe-20.04 to install

then proceed with GRUB installation and so on.

Later in spring this system may be upgraded to Ubuntu 22.04 LTS (Jammy Jellyfish) using release upgrade procedure.


Latest HWE kernel version may be determined from:

General documentation about Debian installer is here:

user535733 avatar
cn flag
+1: Thanks for boiling down all that complexity into a simple, easy-to-follow set of instructions.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.