Public bug reported:
I use purge-old-kernels after upgrade, it purges the wrong kernel.
code says:
current="$(uname -r)"
VERSIONS=$(ls -f /boot/vmlinuz-* | grep -v "$current$" | grep -v '.efi.signed'
| sed -e "s/[^\-]*-//" -e "s/-[^\-]*$//" | sort -rh)
$ ( ls -f /boot/vmlinuz-* | grep -v efi.signed | sed -e "s/[^\-]*-//" -e
"s/-[^\-]*$//" | sort -rh )
4.9.0-15
4.4.0-45
4.10.0-19
$ ls -f /boot/vmlinuz-* | grep -v "$current$" | grep -v '.efi.signed' | sed -e
"s/[^\-]*-//" -e "s/-[^\-]*$//" | sort -rh
4.4.0-45
4.10.0-19
basically, it sorts 4.10 as older than 4.1.
** Affects: byobu (Ubuntu)
Importance: Undecided
Status: New
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs