Score:0

how to stop upgrade during ubuntu 22.04 liverserver ISO installation

cv flag

Issue: Downloaded ubuntu liveserver 22.04 ISO from official site, where it comes by 5.15.0-43 kernel as of (9th December 2022). During install their is a mandatory field "mirror address", by default it comes with http://us.archive.ubuntu.com/ubuntu, here 'us' is the region, we can use http://archive.ubuntu.com/ubuntu as mirror list. As of today (9th December 2022), the updated version iin mirror is 56 version (5.15.0-56), so during install last step its upgrading to 5.15.0-56 kernel.

Solution Required: During and after install we need to get only 5.15.0-43 kernel, it should not update/upgrade to 5.15.0-56 kernel. How to stop update/upgrade during ubuntu liverserver 22.04 installation.

Score:1
jp flag

Buried deep in the installer (subiquity) is the logic that the name of the kernel package that gets installed is contained in the file /run/kernel-meta-package. Typically, this file contains linux-generic. The easiest way to change the contents of this file is probably using cloud-init to configure the installer environment.

Here is a basic cloud-init file that will result in an installed system with the kernel package linux-image-5.15.0-43-generic.

#cloud-config
runcmd:
  - |
    cat <<EOF > /run/kernel-meta-package
    linux-image-5.15.0-43-generic
    EOF

The installer will need to be provided the cloud-init file. As stated in the thread Cloud-init and the live server installer

The easiest meta-data source to provide is “NoCloud” which is documented at https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html

This solution could also be adapted to install 5.15.0-25, or any other available kernel package.

notes

  • I tested using Ubuntu 22.04 (subiquity 22.04.2).
  • This is probably a bad idea because an old kernel package that possibly contains security issues will be installed.
I sit in a Tesla and translated this thread with Ai:

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.