Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 600446

Summary: app-admin/eclean-kernel-9999 cleans out kernel-4.8.10 before 4.8.7 or 4.8.8 or 4.8.9
Product: Gentoo Linux Reporter: Derk W te Bokkel <derk.tebokkel>
Component: Current packagesAssignee: Michał Górny <mgorny>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Derk W te Bokkel 2016-11-22 00:17:55 UTC
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/ 4.8.10-gentoo arch/x86/boot/bzImage \ "/boot"
zlink1 linux-4.8.10-gentoo # eclean-kernel -n 3
- /boot/config-4.8.10-gentoo
- /boot/
- /boot/vmlinuz-4.8.10-gentoo
- /usr/src/linux-4.8.10-gentoo
- /lib/modules/4.8.10-gentoo

eclean-kernel -l
- 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/
- 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/
- 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/
Comment 1 Rick Jenkins 2018-06-26 19:16:20 UTC
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.
Comment 2 Rafael Kitover 2019-04-17 23:26:31 UTC
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.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-24 08:42:33 UTC
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.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-22 07:48:45 UTC
Please reopen if you can still reproduce.