$ df -h /boot/
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 705M 173M 481M 27% /boot
我试图编译Ubuntu内核(v5.11.16)
fakeroot debian/rules clean // fine
make menuconfig // fine
make // fine
sudo make modules_install // fine
但是当我执行sudo make install
时,/boot
分区很快就满了,并且安装命令报告了错误:
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.11.16+ with 1.
请帮助,这是我第一次:) // Ubuntu20.04
发布于 2021-04-24 17:37:52
我添加了INSTALL_MOD_STRIP=1标志来发出命令。它起作用了。
make INSTALL_MOD_STRIP=1 modules_install
发布于 2021-04-24 11:40:02
如果您正在编译内核,那么最好在/boot
目录之外进行编译。这是我在从源代码编译时遵循的过程:
/boot
cp /boot/ config -$(uname -r) .config复制现有配置通常都是这样的。
https://askubuntu.com/questions/1333601
复制相似问题