Mailinglist Archive: opensuse-factory (498 mails)

< Previous Next >
Re: [opensuse-factory] Broken /boot/initrd file after latest upgrade (Tumbleweed 20160519)
On Samstag, 21. Mai 2016 15:35:04 CEST Per Jessen wrote:
Bjoern Voigt wrote:
This must be a modern way or SUSE way to create initrd files.

It's dracut.

Unfortunately most Internet blogs still show the old way to analyze
initrd files (first: gunzip the initrd file; second: extract the cpio
file). It there a documentation for analyzing the initrd files in the
modern format?

To start with, "lsinitrd" for listing the contents.

I read something, that I have to skip some blocks in
the header to get the embedded "lzma" compressed file.

Something like that. I think I've done it, but I can't remember the
exact steps.


*if* you really want to do it manually:

$> cpio -vt < /boot/initrd-4.5.2-1-default
drwxr-xr-x 1 root root 0 May 20 02:31 .
-rw-r--r-- 1 root root 2 May 20 02:31 early_cpio
drwxr-xr-x 1 root root 0 May 20 02:31 kernel
drwxr-xr-x 1 root root 0 May 20 02:31 kernel/x86
drwxr-xr-x 1 root root 0 May 20 02:31 kernel/x86/microcode
-rw-r--r-- 1 root root 20480 May 20 02:31 kernel/x86/microcode/
GenuineIntel.bin
42 blocks

tail -c +$((512*42 + 1)) /boot/initrd-4.5.2-1-default | xzcat | cpio -t
.
bin
bin/bash
bin/cat
bin/chown
...

Kind regards,

Stefan

--
Stefan Brüns / Bergstraße 21 / 52062 Aachen
home: +49 241 53809034 mobile: +49 151 50412019
work: +49 2405 49936-424
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups