"purge-old-kernels" fails when signed images are present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bikeshed (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have linux-signed-
$ ls -tr /boot/vmlinuz-*
/boot/vmlinuz-
If I execute the command that sets CANDIDATES in `purge-old-kernels` (with default KEEP = 2) I get
$ ls -tr /boot/vmlinuz-* | head -n -2 | grep -v "$(uname -r)$" | cut -d- -f2- | awk '{print "linux-image-" $0 " linux-headers-" $0}'
linux-image-
though by design it should not have considered them for removal, as I have only 2 kernels (but each with 2 files instead of one).
Obviously if I would just ran the whole script, result would be quite surprising.
Ubuntu 15.04.
Not using the "bikeshed" package, just downloaded the "purge-old-kernels" script from Launchpad code browser, branch ~ubuntu-