On 2012-09-05 15:46, Dean Henrichsmeyer wrote: > On Wed, Sep 5, 2012 at 8:56 AM, Tyler J. Wagner <[email protected] > I agree; a 100 MB boot is just silly. So, run a daily script with this > in it. > > http://www.tolaris.com/2012/07/19/removing-old-kernels-from-ubuntu/ > > That purges any kernel that isn't either the highest-versioned one, or one > which is currently running. > > > I hope people read that code before running it. It makes assumptions that > are not accurate with reality. For example, running that right now on a > precise machine says: > > <root@courage>:~# echo $KERNEL_HIGHEST > 3.2.0-9 > <root@courage>:~# echo $KERNEL_CURRENT > 3.2.0-29 > > Just a heads up.
I've updated my post to correct the bug Dean found. The code now correctly sorts the version string to find the latest installed kernel. http://www.tolaris.com/2012/07/19/removing-old-kernels-from-ubuntu/ Thanks for the help, Dean. Regards, Tyler -- "Those who make peaceful revolution impossible will make violent revolution inevitable." -- John F. Kennedy -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
