I am currently trying to compile and upgrade my kernel from Ubuntu 5.4.0-66(server) to 5.10.19.
$ uname -aLinux os-env 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxI tried using my old config(for server version)
$ cp -v /boot/config-$(uname -r) .config$ make olddefconfig$ make localmodconfigand the default config.
make menuconfigThe error I keep running into is this error.
Error 24 : Write error : cannot write compressed blockE: mkinitramfs failure cpio 141 lz4 -9 -l 24update-initramfs: failed for /boot/initrd.img-5.10.19-1 with 1.run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1make[1]: *** [arch/x86/boot/Makefile:160: install] Error 1make: *** [arch/x86/Makefile:278: install] Error 2I did check my /boot directory and deleted all existing linux images.
$ df -hFilesystem Size Used Avail Use% Mounted onudev 3.9G 0 3.9G 0% /devtmpfs 797M 1.1M 796M 1% /run/dev/mapper/ubuntu--vg-ubuntu--lv 50G 37G 11G 79% /tmpfs 3.9G 0 3.9G 0% /dev/shmtmpfs 5.0M 0 5.0M 0% /run/locktmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup/dev/sda2 976M 49M 860M 6% /boot/dev/loop0 56M 56M 0 100% /snap/core18/1944/dev/loop1 70M 70M 0 100% /snap/lxd/19188/dev/loop2 32M 32M 0 100% /snap/snapd/10707tmpfs 797M 0 797M 0% /run/user/1000/dev/loop3 56M 56M 0 100% /snap/core18/1988/dev/loop4 33M 33M 0 100% /snap/snapd/11107As you see below there are no images currently existent on my machine. Images were removed via sudo apt remove and sudo apt pruge command and sudo apt autoremove --purge was used afterwards. Also, because this didn't work I also went ahead and referenced this page which provides a one-line solution to empty your /boot directory.
$ sudo apt list --installed | grep linux-imageWARNING: apt does not have a stable CLI interface. Use with caution in scripts.I also tried increasing the boot directory by creating a new vm, but the maximum space I could give to the /boot directory was 1G(the space I gave the boot directory all along).
Now I'm kinda thinking the problem was using a server version in the first place.. but again this doesn't make too much sense because I tried using existing configs and still failed.
Thanks.