-1

I am trying to create a debian install image using a live-build tool. But during installation, the custom kernel I added is not used.

I am trying to create a debian install image using a debian live build. My configuration looks like this:

lb config --distribution bullseye --debian-installer netinst --debian-installer-distribution bullseye --debian-installer-gui false --architecture amd64 --archive-areas "main contrib non-free" --binary-filesystem ext4 --system normal --linux-packages linux-image-5.10.180

I put kernel deb packages in a folder config/packages.chroot, deb package name with kernel ending with "_amd64".

Also I add the following hook to the folder config/hooks/normal:

#!/bin/sh

set +e

apt -y remove linux-image-5.10.0-*

# make initramfs for installed kernels:
update-initramfs -c -k all

ln -s /boot/initrd.img-5.10.180 /boot/initrd.img
ln -s /boot/config-5.10.180 /boot/config
ln -s /boot/System.map-5.10.180 /boot/System.map
ln -s /boot/vmlinuz-5.10.180 /boot/vmlinuz

update-grub

set -e

Then start

lb build

The custom kernel is added to the live image, but the custom kernel I added is not used during installation. Please tell me what am I doing wrong.

  • https://unix.stackexchange.com/questions/445395/how-to-build-live-image-from-custom-compiled-kernel-live-build – tamerlaha Aug 10 '23 at 22:29
  • @tamerlaha, thanks for the comment, however I read this page and it didn't work to create an INSTALLATION image with a custom kernel. – Kill_Real99 Aug 11 '23 at 08:19

0 Answers0