Difference: InitrdDump (r2 vs. r1)

Redhatish systems now use cpio for building the initrd files. To unpack one do:

disk image based

unpack:

mkdir -p tmp/mnt
gunzip -c /boot/initrd-whatever > initrd-whatever
mount -o loop initrd-whatever mnt

repack:

umount mnt
gzip -9 initrd-whatever
mv initrd-whatever.gz initrd-whatever

cpio based

Redhatish systems (guess this is for RHEL5+?) now use cpio for building the initrd files. To unpack one do:

# mkdir tmp
# cd tmp
# cp /boot/initrd-whatever .
# gunzip < initrd-whatever > initrd.cpio
# cpio --list < initrd.cpio
# cpio --extract < initrd.cpio

Shorter:

mkdir tmp; cd tmp
gunzip -c /boot/initrd-whatever | cpio -idv

-- TomRockwell - 17 Oct 2006

View topic | View difference side by side | History: r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback