Problem solved. ---------- Forwarded message --------- From: Shlomi Fish <shlo...@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 <re...@staff.uni-marburg.de> Cc: <bug-c...@gnu.org>, Shlomi Fish <shlo...@gmail.com>
Hi, On Mon, 21 Jan 2019 18:47:43 +0100 Reuti <re...@staff.uni-marburg.de> wrote: > Hi, > > > Am 21.01.2019 um 14:59 schrieb Shlomi Fish <shlo...@shlomifish.org>: > > > > Hi all! > > > > Can anyone address my concern? > > > > Begin forwarded message: > > > > Date: Mon, 21 Jan 2019 12:47:21 +0200 > > From: Shlomi Fish <shlo...@gmail.com> > > To: Linux-IL <linux-il@cs.huji.ac.il> > > Subject: How come the initrd cpio archives are so large? > > > > > > Hi all! > > > > root@telaviv1:~/initrd/good/unpack # ls -l ../img > > -rw------- 1 root root 11419609 Jan 21 11:42 ../img > > root@telaviv1:~/initrd/good/unpack # cpio -i < ../img > > 26 blocks > > root@telaviv1:~/initrd/good/unpack # du . > > 16K ./kernel/x86/microcode > > 20K ./kernel/x86 > > 24K ./kernel > > 32K . > > root@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 .
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il