purge-old-kernels doesn't work when minor kernel version numbers add a digit
Bug #1484376 reported by
Cam Cope
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Won't Fix
|
Undecided
|
Unassigned | ||
bikeshed (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
byobu (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Ex: Have 3 kernels installed, [ 3.2.1, 3.2.2, 3.16.1 ]. Or [4.5.1, 4.8.1, 4.11.1]. Be booted into one of the older kernels. Run purge-old-kernels. You'll be left without the newest kernel. You would run into this if, for instance, you install a new kernel and run the script immediately after.
I think adding the sorting function should do it.