Hrm actually it is not sorting it this way for me:

$ ( ls -f /boot/vmlinuz-* | grep -v efi.signed | sed -e "s/[^\-]*-//" -e 
"s/-[^\-]*$//" | sort -rh )
4.10.0-64
4.10.0-19
4.9.0-64
4.9.0-15
4.4.0-72
4.4.0-70
4.4.0-66
4.4.0-64
4.1.0-64

Correct order due to the "h" in sort.

I was verifying on xenial, where are you seeing this - any sort of
special condition that might apply?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1685338

Title:
  purge-old-kernels sorts kernels incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/1685338/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to