Re: How to debug: Initramfs unpacking failed: junk in compressed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 23, 2013 at 12:11:57PM -0500, Alex Villací­s Lasso wrote:
> How do I peek into the initramfs memory from within the Linux
> system, in order to check the actual contents to see where the
> corruption is? Is there any block device to check?

It doesn't work like this.  When the kernel boots, it locates the
initrd and then parses it, creating files and directories as it
parses, in a tmpfs-like in-memory filesystem from the (optionally
gzipped-) cpio data.  There is no block device backing it.

Because it is using gzip and cpio, the kernel is able to verify the
data looks sane as it goes along, hence the error message.

Note that recent kernels support xz compression.  Not sure about your
kernel, but it might help you squeeze a little bit more into the
initramfs.

You could also try to add some debugging to init/initramfs.c (eg. in
the 'do_name', 'do_copy' and 'do_symlink' functions).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux