Automagic Kernel Cleaning under Ubuntu

Andrew Bolster
Data Science Engineering Manager at NTT Application Security and Trustee at Farset Labs
Sick of having dozens of old kernels sitting under your /boot/ dir? Want a simpler boot-life? Well we’ve got the solution for you.
Just one course of cleankernel once an upgrade cycle will remove all previous kernel entries from your bootloader and /boot/ dir.
Basically, it lists what kernels you currently have in your /boot/ and removes them using apt .