On 2012-09-05 15:46, Dean Henrichsmeyer wrote: > On Wed, Sep 5, 2012 at 8:56 AM, Tyler J. Wagner <[email protected] > 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
You should always read a script before running it. :) Your result is anomalous. I've been using that for 4 years now, with never an error. Testing today on a machine up for 3 days, so it has today's newest kernel, gives: root@baal:~# echo $KERNEL_HIGHEST 3.2.0-30 root@baal:~# echo $KERNEL_CURRENT 3.2.0-29 Perhaps your dpkg database is fresh from a install (apt-get update never ran)? If not, please poke at the code, or contact me privately with the results of: dpkg -l linux-image\* | cat The cat prevents dpkg from truncating version numbers due to terminal width. Regards, Tyler -- "We are on the cusp of this time where I can say, 'I speak as a citizen of the world' without others saying, 'God, what a nut.'" -- Lawrence Lessig -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
