编译linux内核:update-initramfs找不到新内核

编译linux内核:update-initramfs找不到新内核

我尝试使用标准程序从源代码编译 Linux 内核

make defconfig
make menuconfig
make -j9
make modules -j9
sudo make modules_install
sudo make install

我的内核已成功构建,但是在执行时make installupdate-initramfs无法找到新构建的内核。你知道是什么原因导致这个错误吗?我在 Debian 11 上运行

sh ./arch/x86/boot/install.sh 5.16.0 \
    arch/x86/boot/bzImage System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.16.0 /boot/vmlinuz-5.16.0
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.16.0 /boot/vmlinuz-5.16.0
update-initramfs: Generating /boot/initrd.img-5.16.0
find: '/var/tmp/mkinitramfs_XS5s90/lib/modules/5.16.0/kernel': No such file or directory
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.16.0 /boot/vmlinuz-5.16.0
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.16.0
Found initrd image: /boot/initrd.img-5.16.0

相关内容