purge-old-kernels doesn't work when minor kernel version numbers add a digit

Bug #1484376 reported by Cam Cope
12
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.

Tags: patch
Revision history for this message
Cam Cope (ccope) wrote :

I think adding the sorting function should do it.

Cam Cope (ccope)
tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Revision history for this message
Cam Cope (ccope) wrote :

@jarnos: I don't think this is related to byobu?

Revision history for this message
Jarno Suni (jarnos) wrote :

The script has been moved to byobu package in Ubuntu 16.04.

Extract from https://github.com/dustinkirkland/byobu/blob/master/debian/changelog :

 -- Dustin Kirkland <email address hidden> Sun, 28 Feb 2016 23:46:22 -0600

byobu (5.103-0ubuntu1) xenial; urgency=medium

  * usr/bin/Makefile.am, usr/bin/manifest, usr/bin/tmpfsffs,
    usr/share/man/man1/Makefile.am, usr/share/man/man1/manifest.1:
    - added the manifest command
  * debian/control, usr/bin/Makefile.am, usr/bin/purge-old-kernels,
    usr/share/man/man1/Makefile.am, usr/share/man/man1/purge-old-
    kernels.1:
    - move purge-old-kernels over from bikeshed into byobu

Revision history for this message
Cam Cope (ccope) wrote :

Bump. This matters again because 4.10 is out now.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

purge-old-kernels has been deprecated, in favor of "apt autoremove". If you have problems, please file bugs against apt.

Changed in byobu:
status: New → Won't Fix
Changed in bikeshed (Ubuntu):
status: New → Won't Fix
Changed in byobu (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.