On 02/02/16 15:47, Roger Whittaker wrote:
On Tue, Feb 02, 2016 at 04:37:47PM +0200, opensuse.lietuviu.kalba wrote:
It seems, that initrd in openSUSE TW is archived differently from earlier versions. How to extract content of initrd now?
This puzzled me greatly a little while ago, until someone showed me the answer.
What you expect to work:
$ cpio -idv < initrd-4.4.0-2-default . early_cpio kernel kernel/x86 kernel/x86/microcode kernel/x86/microcode/GenuineIntel.bin 22 blocks
But:
$ /usr/lib/dracut/skipcpio initrd-4.4.0-2-default > initrd.xz
$ xz -d initrd.xz
Then
$ cpio -idv < initrd
does what you expect.
so as a one-liner it would be /usr/lib/dracut/skipcpio /boot/initrd-4.4.0-2-default |\ xz -cd |\ cpio -idv -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org