Although this apply and proven to openSuse 15, but it is possible to apply this to other operating system.
When updating kernel to newer version, sometimes the process is halt since we are running out of /boot space.
Typical error message is shown below.
installing package kernel-default-5.14.21-150500.55.19.1.x86_64 needs 2MB on the /boot filesystemMove all old kernel images to temporary location.
# Check your /boot space disk
$ df -h
$ mkdir /tmp/boot
$ cd /boot
$ sudo mv vmlinu* initrd* /tmp/boot
# Check whether your free space in /boot has been increased
$ df -hNow you can continue to update your kernel.
- Increase the space of
/bootfor new installation (1 GB). But, still there is a possibility to have this issue in the future. - Don't separate the partition of
/boot. Instead just make it as a part of root/. By removing/bootand rely only on/, it means our hard limit of/bootis determined by the space of/