On Thu, Apr 07, 2016 at 02:56:49PM -0400, Theodore Ts'o wrote:
>On Fri, Nov 06, 2015 at 01:38:42PM +0000, Steve McIntyre wrote:
>> 
>> I've checked your package and I don't see any update-initramfs
>> calls. Please add one. If you'd like help doing that, I can supply a
>> patch - just ask!
>
>I'm confused.  I've just tried running "update-initramfs -u" using
>initramfs-tools and I'm not seeing any fsck tools.  In fact, I'm not
>seeing much of anything:
>
># update-initramfs -u
>update-initramfs: Generating /boot/initrd.img-4.5.0-00039-ge2bd7c0
># cpio -it < /boot/initrd.img-4.5.0-00039-ge2bd7c0
>kernel
>kernel/x86
>kernel/x86/microcode
>kernel/x86/microcode/GenuineIntel.bin
>44 blocks
>
>This is on a debian testing system using systemd.   What am I missing?
>
>If it matters, I'm not using Debian's heavyweight kernel building
>instead, but instead am building kernels from upstream using "make
>deb-pkg".

Hi Ted,

OK, that's weird. The cpio is normally compressed and contains a lot
of things:

# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
cryptsetup: WARNING: failed to detect canonical device of /dev/sdb2
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.

# zcat /boot/initrd.img-3.16.0-4-amd64 | cpio -it | wc -l
105342 blocks
1126

Included in there I have:

# zcat /boot/initrd.img-3.16.0-4-amd64 | cpio -it  | grep fsck
etc/e2fsck.conf
sbin/e2fsck
sbin/fsck.ext4
sbin/fsck

and these files are copied in there by initramfs-tools using the
/usr/share/initramfs-tools/hooks/fsck script.

I'm guessing there's an odd interaction with the deb-make pkg
stuff. If I try to use cpio -it directly on my initramfs, I get lots
of errors:

# cpio -it < /boot/initrd.img-3.16.0-4-amd64 2>&1 | head
cpio: Malformed number I��e�M�
cpio: Malformed number ��e�M�
cpio: Malformed number �e�M�7
cpio: Malformed number �e�M�7�
cpio: Malformed number e�M�7��
cpio: Malformed number �M�7��
cpio: Malformed number M�7��/
cpio: Malformed number �7��/�
cpio: Malformed number �7��/�9
cpio: Malformed number 7��/�96

which tells me it can't directly deal with the gzip compression.

-- 
Steve McIntyre, Cambridge, UK.                                st...@einval.com
"Because heaters aren't purple!" -- Catherine Pitt

Reply via email to