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

Option to select which unpacker to use #1267

Open
soxrok2212 opened this issue Sep 17, 2024 · 2 comments
Open

Option to select which unpacker to use #1267

soxrok2212 opened this issue Sep 17, 2024 · 2 comments

Comments

@soxrok2212
Copy link

Feature description

It would be useful to be able to select a component and choose which unpacker to use. For example, I have a kernel with an initramfs embedded inside it. I think patool would have no problem extracting it, but 7z is chosen instead by default, which fails.

@jstucke
Copy link
Collaborator

jstucke commented Sep 25, 2024

That's an interesting idea. Currently the unpacker is chosen solely based on the detected MIME type, so we would first need to add this as a feature to the extractor. By the way, what MIME type is detected for your file? Do you think it was not detected correctly or do you think patool would generally be better for this type?

@soxrok2212
Copy link
Author

It was definitely detected correctly. Maybe the LinuxImage unpacker missing some logic to search deeper.

The file is an EFI image (bzImage x86 kernel) and has an embedded initramfs. LinuxUnpacker pulls out 2 EFI files of different sizes, but no initramfs.

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

No branches or pull requests

2 participants