Dnf update on raspberry pi out of disk space on /boot

Got this on an RPi4 with dnf update today:

Running scriptlet: kernel-core-5.14.0-362.13.1.el9_3.aarch64 1113/1113
cp: error writing ‘/boot/initramfs-5.14.0-362.13.1.el9_3.aarch64.img’: No space left on device
dracut: dracut: creation of /boot/initramfs-5.14.0-362.13.1.el9_3.aarch64.img failed
warning: %posttrans(kernel-core-5.14.0-362.13.1.el9_3.aarch64) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package kernel-core
Running scriptlet: kernel-modules-core-5.14.0-362.13.1.el9_3.aarch64 1113/1113
Running scriptlet: kernel-modules-5.14.0-362.13.1.el9_3.aarch64 1113/1113
Running scriptlet: kmod-kvdo-8.2.1.6-98.el9.aarch64 1113/1113
Running scriptlet: kexec-tools-2.0.26-8.el9.aarch64 1113/1113
Running scriptlet: tuned-2.21.0-1.el9_3.noarch 1113/1113
Running scriptlet: raspberrypi2-kernel4-6.1.31-v8.1.el9.altarch.aarch64 1113/1113
cp: error writing ‘/boot/initramfs-6.1.31-v8.1.el9.altarch.img’: No space left on device
dracut: dracut: creation of /boot/initramfs-6.1.31-v8.1.el9.altarch.img failed

Running scriptlet: libgcc-11.3.1-4.3.el9.aarch64 1113/1113
Couldn’t write ‘0’ to ‘kernel/yama/ptrace_scope’, ignoring: No such file or directory

The rest of the dnf update succeeded so now I’m more than a little concerned that the next boot is going to fail.

/boot now has 54M available of 300M–what could be deleted?

Alternatively, is there a way to expand /boot without a re-install?

Thanks!
Jeff Ross

I decided to just to try it.

Reboot successful–neofetch shows running the new kernel:

jross@rpi4:~$ sudo neofetch
        #####           root@rpi4 
       #######          --------- 
       ##O#O##          OS: Rocky Linux 9.3 (Blue Onyx) aarch64 
       #######          Host: Raspberry Pi 4 Model B Rev 1.5 
     ###########        Kernel: 6.1.31-v8.1.el9.altarch 
    #############       Uptime: 1 min 
   ###############      Packages: 1676 (rpm) 
   ################     Shell: bash 5.1.8 
  #################     CPU: BCM2835 (4) @ 1.500GHz 
#####################   Memory: 340MiB / 3794MiB 
#####################
  #################                             

So all is well it seems!
Jeff