projg2 / eclean-kernel

Installed kernel cleanup tool
GNU General Public License v2.0
31 stars 10 forks source link

No vmlinuz found with gentoo-kernel-bin-6.9.3 (arm64): "not recognized as any special format and unable to find version string in it" #52

Open sbraz opened 1 month ago

sbraz commented 1 month ago

Hi, can you help me understand what's going on here please? This is an ~arm64 system with sys-kernel/gentoo-kernel-bin-6.9.3:

# eclean-kernel  --version
2.99.8
# eclean-kernel -D
DEBUG:root:Sorter: <ecleankernel.sort.VersionSort object at 0xffffaa68bf10>
DEBUG:root:Layout: <ecleankernel.layout.blspec.BlSpecLayout object at 0xffffaa66b550>
DEBUG:root:Bootloader failed: <class 'ecleankernel.bootloader.lilo.LILO'>
DEBUG:root:Bootloader failed: <class 'ecleankernel.bootloader.grub2.GRUB2'>
DEBUG:root:Bootloader failed: <class 'ecleankernel.bootloader.grub.GRUB'>
DEBUG:root:Bootloader failed: <class 'ecleankernel.bootloader.yaboot.Yaboot'>
DEBUG:root:Bootloader: <ecleankernel.bootloader.symlinks.Symlinks object at 0xffffaafe8350>
DEBUG:root:Unrecognized potential kernel image: Kernel file /efi/096c976bec474096a295d1e643e5291d/6.9.3-gentoo-dist/linux not recognized as any special format and unable to find version string in it
DEBUG:root:in get_removal_list()
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/eclean-kernel", line 8, in <module>
    sys.exit(setuptools_main())
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ecleankernel/__main__.py", line 391, in setuptools_main
    sys.exit(main(sys.argv[1:]))
             ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ecleankernel/__main__.py", line 251, in main
    removals = get_removal_list(
               ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ecleankernel/process.py", line 81, in get_removal_list
    raise SystemError(
SystemError: No vmlinuz found. This seems ridiculous, aborting.
# file /efi/096c976bec474096a295d1e643e5291d/6.9.3-gentoo-dist/linux
/efi/096c976bec474096a295d1e643e5291d/6.9.3-gentoo-dist/linux: PE32+ executable (EFI application) Aarch64 (stripped to external PDB), for MS Windows, 2 sections
leonik375 commented 3 weeks ago

I think new default gentoo kernel install procedure with Debian's 'installkernel' broke some things, installed kernels named "kernel-(version)-gentoo" by default now