Debian Live Build を使用したカスタムカーネルによる Debian インストールイメージのビルド

Debian Live Build を使用したカスタムカーネルによる Debian インストールイメージのビルド

Debianのインストールイメージを作成するためにツールを使用しようとしていますlive-build。しかし、インストール中に私が追加したカスタムカーネルは使用されませんでした。

Debian Live Build を使用して Debian インストールイメージを作成しようとしています。私の設定は次のとおりです。

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

カーネル deb パッケージを config/packages.chroot フォルダに入れ、 deb パッケージ名とカーネルは "_amd64" で終わります。

また、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

それから始めましょう

lb build

ライブイメージにカスタムカーネルが追加されましたが、私が追加したカスタムカーネルはインストール中に使用されませんでした。何が間違っているのか教えてください。

ベストアンサー1

おすすめ記事