"purge-old-kernels" fails when signed images are present

Bug #1477771 reported by Pavlo Shchelokovskyy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bikeshed (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have linux-signed-image-generic package installed

$ ls -tr /boot/vmlinuz-*

/boot/vmlinuz-3.19.0-22-generic /boot/vmlinuz-3.19.0-23-generic /boot/vmlinuz-3.19.0-22-generic.efi.signed /boot/vmlinuz-3.19.0-23-generic.efi.signed

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-3.19.0-22-generic linux-headers-3.19.0-22-generic

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-branches/ubuntu/wily/bikeshed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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