<div dir="ltr">Problem solved.<br><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Shlomi Fish</b> <span dir="ltr"><<a href="mailto:shlomif@shlomifish.org">shlomif@shlomifish.org</a>></span><br>Date: Tue, Jan 22, 2019 at 10:25 AM<br>Subject: Re: [Bug-cpio] Fw: How come the initrd cpio archives are so large?<br>To: Reuti <<a href="mailto:reuti@staff.uni-marburg.de">reuti@staff.uni-marburg.de</a>><br>Cc: <<a href="mailto:bug-cpio@gnu.org">bug-cpio@gnu.org</a>>, Shlomi Fish <<a href="mailto:shlomif@gmail.com">shlomif@gmail.com</a>><br></div><br><br>Hi,<br>
<br>
On Mon, 21 Jan 2019 18:47:43 +0100<br>
Reuti <<a href="mailto:reuti@staff.uni-marburg.de" target="_blank">reuti@staff.uni-marburg.de</a>> wrote:<br>
<br>
> Hi,<br>
> <br>
> > Am 21.01.2019 um 14:59 schrieb Shlomi Fish <<a href="mailto:shlomif@shlomifish.org" target="_blank">shlomif@shlomifish.org</a>>:<br>
> > <br>
> > Hi all!<br>
> > <br>
> > Can anyone address my concern?<br>
> > <br>
> > Begin forwarded message:<br>
> > <br>
> > Date: Mon, 21 Jan 2019 12:47:21 +0200<br>
> > From: Shlomi Fish <<a href="mailto:shlomif@gmail.com" target="_blank">shlomif@gmail.com</a>><br>
> > To: Linux-IL <<a href="mailto:linux-il@cs.huji.ac.il" target="_blank">linux-il@cs.huji.ac.il</a>><br>
> > Subject: How come the initrd cpio archives are so large?<br>
> > <br>
> > <br>
> > Hi all!<br>
> > <br>
> > root@telaviv1:~/initrd/good/unpack # ls -l ../img<br>
> > -rw------- 1 root root 11419609 Jan 21 11:42 ../img<br>
> > root@telaviv1:~/initrd/good/unpack # cpio -i < ../img<br>
> > 26 blocks<br>
> > root@telaviv1:~/initrd/good/unpack # du .<br>
> > 16K ./kernel/x86/microcode<br>
> > 20K ./kernel/x86<br>
> > 24K ./kernel<br>
> > 32K .<br>
> > root@telaviv1:~/initrd/good/unpack #<br>
> > <br>
> > <br>
> > ==> why is the initrd cpio image so large in comparison to its contents? <br>
> <br>
> Because it contains more than a single file, i.e. a compressed directory tree<br>
> is attached:<br>
> <br>
> <a href="https://unix.stackexchange.com/questions/163346/why-is-it-that-my-initrd-only-has-one-directory-namely-kernel" rel="noreferrer" target="_blank">https://unix.stackexchange.com/questions/163346/why-is-it-that-my-initrd-only-has-one-directory-namely-kernel</a><br>
> <br>
<br>
Thanks!<br>
<br>
Yes, as I discovered one should use dracut's lsinitrd -<br>
<a href="http://man7.org/linux/man-pages/man1/lsinitrd.1.html" rel="noreferrer" target="_blank">http://man7.org/linux/man-pages/man1/lsinitrd.1.html</a> - possibly with "--unpack"<br>
to extract an initrd.<br>
<br>
> -- Reuti<br>
> <br>
<br>
<br>
<br>
<br>
-- <br>
-----------------------------------------------------------------<br>
Shlomi Fish <a href="http://www.shlomifish.org/" rel="noreferrer" target="_blank">http://www.shlomifish.org/</a><br>
NSA Factoids - <a href="http://www.shlomifish.org/humour/bits/facts/NSA/" rel="noreferrer" target="_blank">http://www.shlomifish.org/humour/bits/facts/NSA/</a><br>
<br>
Objective Visual Turbo Global jIronOpenPerl++.NET™ Enterprise Edition♭<br>
Professional Home Premium Ultimate 64-bit Single-user.<br>
— based on a Freenode #perl conversation ( <a href="http://is.gd/cCUBY2" rel="noreferrer" target="_blank">http://is.gd/cCUBY2</a> )<br>
<br>
Please reply to list if it's a mailing list post - <a href="http://shlom.in/reply" rel="noreferrer" target="_blank">http://shlom.in/reply</a> .<br>
</div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br><br>Buddha has the Chuck Norris nature.</div><div dir="ltr"><br></div><div dir="ltr">Please reply to list if it's a mailing list post - <a href="http://shlom.in/reply" target="_blank">http://shlom.in/reply</a> .<br></div></div></div></div></div></div></div></div>