/boot maintenance
Tyler J. Wagner
tyler at tolaris.com
Thu Sep 6 12:21:26 UTC 2012
On 2012-09-05 15:46, Dean Henrichsmeyer wrote:
> On Wed, Sep 5, 2012 at 8:56 AM, Tyler J. Wagner <tyler at tolaris.com
> 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 at courage>:~# echo $KERNEL_HIGHEST
> 3.2.0-9
> <root at 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
More information about the ubuntu-server
mailing list