looks like a sort order issue kernels 4.8.10, 4.8.7, 4.8.8 and 4.8.9 installed eclean-kernel -n 3 .. clobbers most recently built and installed 4.8.10 as per: INSTALL net/vmw_vsock/vsock.ko INSTALL sound/core/seq/snd-seq-midi.ko INSTALL sound/core/snd-rawmidi.ko INSTALL sound/drivers/mpu401/snd-mpu401-uart.ko INSTALL sound/drivers/mpu401/snd-mpu401.ko INSTALL sound/drivers/snd-aloop.ko INSTALL virt/lib/irqbypass.ko INSTALL /lib/firmware/cpia2/stv0672_vp4.bin DEPMOD 4.8.10-gentoo sh ./arch/x86/boot/install.sh 4.8.10-gentoo arch/x86/boot/bzImage \ System.map "/boot" zlink1 linux-4.8.10-gentoo # eclean-kernel -n 3 Removing... 4.8.10-gentoo: - /boot/config-4.8.10-gentoo - /boot/System.map-4.8.10-gentoo - /boot/vmlinuz-4.8.10-gentoo - /usr/src/linux-4.8.10-gentoo - /lib/modules/4.8.10-gentoo eclean-kernel -l 4.8.7-gentoo: - aux: /boot/config-4.8.7-gentoo - kernel: /boot/vmlinuz-4.8.7-gentoo - build: /usr/src/linux-4.8.7-gentoo - modules: /lib/modules/4.8.7-gentoo - aux: /boot/System.map-4.8.7-gentoo 4.8.8-gentoo: - aux: /boot/config-4.8.8-gentoo - kernel: /boot/vmlinuz-4.8.8-gentoo - build: /usr/src/linux-4.8.8-gentoo - modules: /lib/modules/4.8.8-gentoo - aux: /boot/System.map-4.8.8-gentoo 4.8.9-gentoo: - aux: /boot/config-4.8.9-gentoo - kernel: /boot/vmlinuz-4.8.9-gentoo - build: /usr/src/linux-4.8.9-gentoo - modules: /lib/modules/4.8.9-gentoo - aux: /boot/System.map-4.8.9-gentoo
Still an issue. In my case eclean-kernel 1.99.4 with -n 2 cleans out linux-4.17.0-gentoo leaving linux-4.15.0-gentoo intact, when linux-4.17.2-gentoo is present.
For me it deleted 5.1-rc5 which was the latest and left 5.1-rc3, something is off with the version number detection or something. Now I'm recompiling my kernel again.
Could you try 2.99.1 and see if it happens still? The algorithm is roughly the same but since it's rewritten to Python, I might have fixed some bug in the C code.
Please reopen if you can still reproduce.