Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 1, 2024 · 4 comments

Comments

@sbraz
Copy link

sbraz commented Jun 1, 2024

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
Copy link

leonik375 commented Jun 10, 2024

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

@Nowa-Ammerlaan
Copy link
Contributor

I'm pretty sure this is caused by CONFIG_EFI_ZBOOT. It makes the kernel an EFI application.

By the way, this kernel is installed in the layout for systemd-boot, but your second comment seems to suggest that this is not the bootloader you are using. Is this correct?

@Nowa-Ammerlaan
Copy link
Contributor

Maybe you can give this patch a try and let us know if it helps: #53

@sbraz
Copy link
Author

sbraz commented Oct 27, 2024

Thanks, it does work: #53 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants