Skip to content

Initramfs detection fails if the initramfs does not contain early CPIO #65

@koniiiik

Description

@koniiiik

Here's the output of eclean-kernel -l on one of my systems:

#  eclean-kernel -l
other 6.18.12-gentoo-dist [6.18.12-gentoo-dist]
- initramfs: /boot/initramfs-6.18.12-gentoo-dist.img
- vmlinuz: /boot/kernel-6.18.12-gentoo-dist
- modules: /lib/modules/6.18.12-gentoo-dist
- build: /lib/modules/6.18.12-gentoo-dist/../../../src/linux-6.18.12-gentoo-dist
- last modified: 2026-02-24 18:19:26
other 6.18.8-gentoo-dist [CIFS]
- vmlinuz: /boot/initramfs-6.18.8-gentoo-dist.img
- last modified: 2026-02-17 17:41:36
other 6.18.8-gentoo-dist [6.18.8-gentoo-dist]
- vmlinuz: /boot/kernel-6.18.8-gentoo-dist
- modules: /lib/modules/6.18.8-gentoo-dist
- last modified: 2026-02-17 17:41:36
other 6.12.68-gentoo-dist [6.12.68-gentoo-dist]
- vmlinuz: /boot/kernel-6.12.68-gentoo-dist
- modules: /lib/modules/6.12.68-gentoo-dist
- last modified: 2026-02-13 11:11:03
other 6.12.68-gentoo-dist [CIFS]
- vmlinuz: /boot/initramfs-6.12.68-gentoo-dist.img
- last modified: 2026-02-13 11:11:03
other 6.12.63-gentoo-dist [CIFS]
- vmlinuz: /boot/initramfs-6.12.63-gentoo-dist.img
- last modified: 2026-01-29 21:04:19
other 6.12.63-gentoo-dist [6.12.63-gentoo-dist]
- vmlinuz: /boot/kernel-6.12.63-gentoo-dist
- modules: /lib/modules/6.12.63-gentoo-dist
- last modified: 2026-01-29 21:04:19

For all versions except for 6.18.12-gentoo-dist, the initramfs is parsed as a separate kernel image with invalid version information. This also leads to #27 when trying to clean up the mis-identified initramfs images.

The difference between 6.18.12-gentoo-dist and the older versions on this system is that it's the only one that contains the early CPIO with CPU microcode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions