Bug 19852
Summary: | extract-ikconfig only works with gzip'ed kernel images | ||
---|---|---|---|
Product: | Other | Reporter: | Justin (jlec) |
Component: | Other | Assignee: | other_other |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | dick, florian, randy.dunlap |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.gentoo.org/show_bug.cgi?id=340021 | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: |
Add support for kernels compressed with bzip2, lzma or lzo, in addition to gzip.
cleanup up patch, now applies cleanly revised patch that also works with busybox zcat |
Description
Justin
2010-10-07 17:06:30 UTC
Created attachment 33392 [details] Add support for kernels compressed with bzip2, lzma or lzo, in addition to gzip. Justin, please test this patch to scripts/extract-ikconfig. This is from Dick Streefland and was posted here: http://marc.info/?l=linux-kbuild&m=128683621407052&w=2 Created attachment 33402 [details]
cleanup up patch, now applies cleanly
Smae patch without the leading comments that patch is
confused by.
It does work partially. So the config is not send to stdout, but in .1 of the temporary files the config is in. Created attachment 33502 [details]
revised patch that also works with busybox zcat
I'm not sure why the script doesn't work for you, but perhaps you use a version of zcat that doesn't return exit status 2 when there is trailing garbage? I just discovered that the busybox version of zcat returns 0 in this case. The revised patch should also work for these versions of zcat.
(In reply to comment #4) > Created an attachment (id=33502) [details] > revised patch that also works with busybox zcat > Nice that one works as expected. This is now commit 532cf2907ac3b9c2345d76251764f4f4e602c921 in mainline. |