On Mon, Aug 02, 2021 at 07:41:03AM -0400, The Wanderer wrote:
> On 2021-08-02 at 07:25, Greg Wooledge wrote:
> 
> > unicorn:~$ lsinitrd /boot/initrd.img-5.10.0-8-amd64 | wc -l
> > 1646
> > unicorn:~$ lsinitramfs /boot/initrd.img-5.10.0-8-amd64 | wc -l
> > 1635
> > 
> > Curious.
> 
> Try a diff between the lsinit* outputs? I don't have dracut-core
> installed, or I'd run the test myself just out of curiosity.

I didn't have it either; I installed it specifically to test this thing.
Unfortunately, installing it also brought in "cryptsetup" and related
packages, which modified the initrd images.  Because of that, I don't
recommend this test for anyone else.

unicorn:~$ lsinitramfs -l /boot/initrd.img-5.10.0-8-amd64 | head
drwxr-xr-x   2 root     root            0 Apr 25 08:00 kernel
drwxr-xr-x   2 root     root            0 Apr 25 08:00 kernel/x86
drwxr-xr-x   2 root     root            0 Apr 25 08:00 kernel/x86/microcode
drwxr-xr-x   2 root     root            0 Apr 25 08:00 
kernel/x86/microcode/.enuineIntel.align.0123456789abc
-rw-r--r--   1 root     root      4609024 Apr 25 08:00 
kernel/x86/microcode/GenuineIntel.bin
drwxr-xr-x   8 root     root            0 Aug  2 07:24 .
lrwxrwxrwx   1 root     root            7 Aug  2 07:24 bin -> usr/bin
drwxr-xr-x   3 root     root            0 Aug  2 07:24 conf
-rw-r--r--   1 root     root           16 Aug  2 07:24 conf/arch.conf
drwxr-xr-x   2 root     root            0 Aug  2 07:24 conf/conf.d

unicorn:~$ lsinitrd /boot/initrd.img-5.10.0-8-amd64 | head
Image: /boot/initrd.img-5.10.0-8-amd64: 39M
========================================================================
Early CPIO image
========================================================================
drwxr-xr-x   2 root     root            0 Apr 25 08:00 kernel
drwxr-xr-x   2 root     root            0 Apr 25 08:00 kernel/x86
drwxr-xr-x   2 root     root            0 Apr 25 08:00 kernel/x86/microcode
drwxr-xr-x   2 root     root            0 Apr 25 08:00 
kernel/x86/microcode/.enuineIntel.align.0123456789abc
-rw-r--r--   1 root     root      4609024 Apr 25 08:00 
kernel/x86/microcode/GenuineIntel.bin
========================================================================

At first glance, it looks like the difference in line count might be
due to these headers and footers around each archive.

But if I actually do

diff -u <(lsinitramfs -l /boot/initrd.img-5.10.0-8-amd64) <(lsinitrd 
/boot/initrd.img-5.10.0-8-amd64) | less

there are a whole bunch of other differences.  Some archive member files
are moved around, which I cannot understand (the biggest offenders are
the 0-length hard link indicators such as usr/bin/umount).  I'm not sure
if those are the *only* differences, because there's so much noise due
to that.

Reply via email to