On 2012-09-05 15:46, Dean Henrichsmeyer wrote:
> On Wed, Sep 5, 2012 at 8:56 AM, Tyler J. Wagner <firstname.lastname@example.org
> 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
> <root@courage>:~# echo $KERNEL_CURRENT
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
root@baal:~# echo $KERNEL_CURRENT
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
dpkg -l linux-image* | cat
The cat prevents dpkg from truncating version numbers due to terminal width.
"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
More info: https://wiki.ubuntu.com/ServerTeam