在 Gentoo 服务器上,EFI 分区已满,并且在尝试更新内核时会导致问题。
ls
/boot 显示以下内容:
config-6.1.27-gentoo-dist config-6.3.8-gentoo-dist initramfs-6.3.4-gentoo-dist.img.old System.map-6.3.3-gentoo-dist vmlinuz-6.1.27-gentoo-dist vmlinuz-6.3.6-gentoo-dist
config-6.3.10-gentoo-dist config-6.3.9-gentoo-dist initramfs-6.3.5-gentoo-dist.img System.map-6.3.4-gentoo-dist vmlinuz-6.3.10-gentoo-dist vmlinuz-6.3.7-gentoo-dist
config-6.3.3-gentoo-dist EFI initramfs-6.3.6-gentoo-dist.img System.map-6.3.4-gentoo-dist.old vmlinuz-6.3.11-gentoo-dist vmlinuz-6.3.8-gentoo-dist
config-6.3.4-gentoo-dist grub initramfs-6.3.7-gentoo-dist.img System.map-6.3.5-gentoo-dist vmlinuz-6.3.12-gentoo-dist vmlinuz-6.3.9-gentoo-dist
config-6.3.4-gentoo-dist.old initramfs-6.1.27-gentoo-dist.img initramfs-6.3.8-gentoo-dist.img System.map-6.3.6-gentoo-dist vmlinuz-6.3.3-gentoo-dist vmlinuz-6.4.3-gentoo-dist
config-6.3.5-gentoo-dist initramfs-6.3.10-gentoo-dist.img initramfs-6.3.9-gentoo-dist.img System.map-6.3.7-gentoo-dist vmlinuz-6.3.4-gentoo-dist vmlinuz-6.4.4-gentoo-dist
config-6.3.6-gentoo-dist initramfs-6.3.3-gentoo-dist.img System.map-6.1.27-gentoo-dist System.map-6.3.8-gentoo-dist vmlinuz-6.3.4-gentoo-dist.old vmlinuz-6.4.4-gentoo-dist.old
config-6.3.7-gentoo-dist initramfs-6.3.4-gentoo-dist.img System.map-6.3.10-gentoo-dist System.map-6.3.9-gentoo-dist vmlinuz-6.3.5-gentoo-dist
当前启动的内核版本是6.1.27-gentoo-dist
.
从启动分区中删除旧映像的正确方法是什么?
答案1
从https://wiki.gentoo.org/wiki/Kernel/Removal:
$ emerge eclean-kernel
$ eclean-kernel -a
感谢@Artem S. Tashkinov。