My /boot partition is 500M in size, as I thought it would be enough when I did the installation. It seems it isn't.
Now it's almost full
/dev/sda1 446M 352M 61M 86% /boot
Doing apt-get upgrade doesn't succeed:
update-initramfs: Generating /boot/initrd.img-5.11.0-25-generic
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.0-25-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Contents of the /boot:
total 343M
-rw-r
-rw-r
drwx
drwxr-xr-x 4 root root 4,0K heinä 23 13:13 grub
-rw-r
-rw-r
lrwxrwxrwx 1 root root 28 heinä 23 06:04 initrd.img.old -> initrd.img-5.11.0-22-generic
drwx
-rw-r
-rw-r
-rw-r
-rw
-rw
lrwxrwxrwx 1 root root 25 heinä 23 06:04 vmlinuz -> vmlinuz-5.11.0-25-generic
-rw
-rw
lrwxrwxrwx 1 root root 25 heinä 23 06:04 vmlinuz.old -> vmlinuz-5.11.0-22-generic
Do I need to resize my boot partition? Is there a way to do the upgrade without resizing boot partition?