Swap kernel alternate method

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
User avatar
fredx181
Posts: 3176
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 388 times
Been thanked: 1365 times
Contact:

Swap kernel alternate method

Post by fredx181 »

*** Swap kernel alternate method ***

There's already package "upgrade-kernel" for to create a new kernel setup, but here's other way, perhaps more convenient for some.

To be able to install other (newer) kernel with apt or synaptic, to use for a frugal install, download and install this .deb :
https://github.com/doglinux/book-worm/r ... u1_all.deb
(install by e.g. dpkg -i initramfs-tools_0.142+deb12u1_all.deb)
(modified by me to be able to create porteus-boot initrd1.xz directly in the 'live' folder)

I wanted newer kernel than the standard (bookworm), so enabled the "bookworm-backports" repository (for to install latest available kernel (linux-image-*)
echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list
edit: but can be without enabling backports just to upgrade to the newest available standard bookworm kernel or install e.g. rt (realtime) version.
And updated package lists: apt update

Used Synaptic for installing (but can be be done by using apt too), I chose linux-image-6.11.10+bpo-amd64 (currently newest available from backports)

Screenshot.png
Screenshot.png (76.33 KiB) Viewed 182 times

Install process:

Screenshot(1).png
Screenshot(1).png (78.06 KiB) Viewed 182 times

Note: this will install the kernel in the system (in save storage, only if used) rather than creating a .squashfs kernel module (as upgrade-kernel does).
And it needs to be on a 'bare metal' frugal install (will not work when booting ISO directly, e.g. with Ventoy)

The existing initrd1.xz and vmlinuz1 will be backed up (to e.g. vmlinuz1-<version>) and the kernel .squashfs in 'live' (if exists) then isn't needed anymore.
Reboot (with save) to use the new kernel install.

EDIT: I'd say this is ideal for when using the Pseudo Full install setup: viewtopic.php?t=11111
Fix for when using save on demand: viewtopic.php?p=139170#p139170

Post Reply

Return to “DebianDogs”