[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#764022: inaccurate DEBUG method on man page



Package: initramfs-tools
Version: 0.117
File: /usr/share/man/man8/initramfs-tools.8.gz

We read

DEBUG
       It  is  easy  to check the generated initramfs for its content. One may
       need to double-check if it contains the relevant binaries, libs or mod-
       ules:
              mkdir tmp/initramfs
              cd tmp/initramfs
              gunzip -c /boot/initrd.img-2.6.18-1-686 | \
              cpio -i -d -H newc --no-absolute-filenames

However these days this will merely get the user:

gzip: /boot/initrd.img-3.16-2-686-pae: not in gzip format
cpio: premature end of file

These days

$ file initrd.img-3.16-*
initrd.img-3.16-2-686-pae: ASCII cpio archive (SVR4 with no CRC)
$ cpio -tF initrd.img-3.16-2-686-pae
kernel
kernel/x86
kernel/x86/microcode
kernel/x86/microcode/GenuineIntel.bin
6 blocks

Noting the 6 blocks, I then did

set -uxe
cd /
mkdir -p tmp/initramfs
cd tmp/initramfs
dd if=/boot/initrd.img-3.16-2-686-pae skip=6|zcat|
cpio -vi -d -H newc --no-absolute-filenames

which worked.

So the man page needs to be updated.


Reply to: