Mailinglist Archive: opensuse-factory (498 mails)

< Previous Next >
Re: [opensuse-factory] Broken /boot/initrd file after latest upgrade (Tumbleweed 20160519)
On Sat, May 21, 2016 at 04:44:10PM +0200, Stefan Bruens wrote:

[...]

*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
...

There's also a tool for this:

/usr/lib/dracut/skipcpio

e.g.

/usr/lib/dracut/skipcpio initrd-4.5.4-1-default > initrd.xz

xz -d initrd.xz

cpio -idv < initrd



--
========================
Roger Whittaker
roger@xxxxxxxxxxxxxxxxx
http://disruptive.org.uk
========================
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups