Summary: | mkinitrd creates a wrong version cpio file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Frack <frack> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | Sergey.Belyashov |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 324741 | ||
Bug Blocks: | |||
Attachments: |
Possible solution
mkinitrd-4.2.0.3-cpio-format.patch |
Description
Frack
2006-03-25 08:53:25 UTC
Created attachment 83091 [details, diff]
Possible solution
just to make sure that the next who traps into this finds the right hint at google (it cost me at least two hours to solve the problem and develope the same patch as suggested above): if you try to boot a kernel with this it sayes: Unpacking Initramfs...<0>Kernel panic - not syncing: no cpio magic kernel 2.6.19-r5 cpio format must be "newc". Else it says: "Unpacking Initramfs...<0>Kernel panic - not syncing: no cpio magic" sys-apps/mkinitrd-4.2.0.3 currently contains 'cpio -c -o'. Must be 'cpio -H newc -o'. May be patch inverted? Created attachment 109725 [details, diff]
mkinitrd-4.2.0.3-cpio-format.patch
Confirmed, took me 2 hours to find out. Additionally, the last unmasked version in portage (3.5.7-r3) uses pivot_root in the linuxrc script which is deprecated, did not work for me with kernel 2.6.16.33 and might be generally broken. This leaves us with no usable mkinitrd version in portage so imho the proposed patch should be applied asap and 4.2.0.3 be unmasked!! RH releases new mkinitrd (4.2.1.10): https://rhn.redhat.com/errata/RHBA-2007-0273.html This new release contains same bugs as current. I think, it is not good idea to wait while RH resolve it. please fix that in gentoo soon -- i just wrote that very patch as well :-) gone |