Bug 1612339
| Summary: | grub2-install fails on x86_64 with grub2-2.02-47.fc29: "Decompressor is too big" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adam Williamson (Red Hat non-Fedora) <awilliam> |
| Component: | grub2 | Assignee: | Peter Jones <pjones> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 29 | CC: | dustymabe, fmartine, kevin, lkundrak, pjones |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | grub2-2.02-48.fc29 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-10-15 06:15:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Adam Williamson (Red Hat non-Fedora)
2018-08-03 17:12:48 UTC
So, peter notes that lzma_decompress.img (which is the 'decompressor' in question here) indeed did grow to absurd sizes in the latest grub2 builds both for F28 and Rawhide. It should be about 3K. It's actually over 128MB. It seems that most of that space is empty - there's a bit of data at the start of the file, then like 128MB of zeroes, then a bit of data at the end of the file. As this happened on both F28 and Rawhide it's probably not a toolchain issue; Peter's trying to find the cause on the grub side now. <ascii art middle finger pointing at binutils here> Should be fixed in grub2-2.02-48.fc29. For the record, the size inflation happens when a precursor file (lzma_decompress.image) is processed into lzma_decompress.img with objcopy. The way objcopy is invoked this *should* only ever make the file smaller by stripping unneeded stuff out of it, but it seems in the latest grub bits Peter merged recently there's some kind of bug which results in a new "bogus" (per Peter) elf note section showing up in lzma_decompress.image . It's that note section which results in the huge output file (IIUC, because it claims to be located "at" 128M, so objcopy just outputs the section before it, then enough zeroes to get to 128M, *then* the note section). For now Peter went with a patch which just tells objcopy to skip the offending note section, which avoids the problem and gives us a normally-sized output file. He'll probably try and figure out where the bogus note comes from in the first place too and get rid of it, but until that's fixed, this fix should keep working. This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'. |