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