-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
eclean-kernel has met the following issue: MissingDecompressorError('Kernel file /boot/initramfs-5.13.12-gentoo-x86_64.img is compressed with lzo, but the required decompressor is not installed') #22
Comments
There's USE=lzo that pulls in the right deps. |
What do you mean? My kernel and initramfs are compiled using LZO compression. I already have an installed package "app-arch/lzop". I've added "app-admin/eclean-kernel lzo" to my "/etc/portage/package.use", re-emerged "app-admin/eclean-kernel", and now when I run "eclean-kernel -n 1", I get a message: "error('Header error - invalid compressed data')". |
|
please. |
CC @Jannik2099 |
It was emerged as a dependency of eclean-kernel.
|
well this is interesting can you open a python shell (just run @mgorny I wasn't aware we also do the kernel version parsing on initramfs files, is this intended? |
|
@Jannik2099 see #22 (comment). Maybe the kernel uses a different stream format, similarly to lz4? @iq180 would it be possible for you to attach the kernel image here? I don't think there are any secrets inside it ;-). |
ooooh, I didn't see that the error changed - whoops |
https://www.kernel.org/doc/Documentation/lzo.txt oh great, what a fustercluck |
If it's too hard to support, we can always declare it unsupported. Would be nice to get an lzo-compressed kernel anyway and see if lzop can deal with it. |
yeah, if this requires any custom logic I'd prefer to just drop it - lzo is obsoleted by zstd anyways in just about any metric (including being a sane format) |
Hm. LZO is fast, it's approved to use in kernel/initramfs compression. But "it's too hard to support". Very strange. Apparently, eclean is for those who use default kernel compilation settings only. Very strange. |
Great decision. |
LZO has roughly the same compression ratio as lz4 at almost 5x lower decompression speed, and a roughly 30% lower compression ratio than zstd at less than half the decompression speed. It's outclassed by lz4 and zstd at both ends That being said if it turns out python-lzo supports the kernels compression encoding there's no reason not to support it, but I don't feel like writing a custom frame decompressor for an effectively deprecated algorithm |
@iq180, please stop being such an asshole. We're working on this in our free time, we don't get any money for it and apparently no gratitude either. We can't do much about the fact that LZO is poorly standardized and the kernel implementation apparently disagrees with the standard stream format. If you want things to happen, either supply patches or talk to @Jannik2099 about the possibility of funding this work. Or at least stop being such a douchebag because that kind of attitude is literally killing volunteer work. |
@Jannik2099 BTW you may want to see if squashfs-tools has something useful to steal. If you really don't want to do it, then could you remove LZO support altogether and replace it with a clear error message? |
Asshole, as I consider, is the maintainer who fails to maintain. |
Why does it need to decompress initramfs images though? Can I somehow tell it to ignore them? |
However, emerge --info emerge app-arch/lzop shows:
The text was updated successfully, but these errors were encountered: